: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);
}

* {
  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: url("photo_2026-10-20_04-02-30.jpg");
  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;
}

.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;top:0;right:0;bottom:0;left:0;z-index:9999;background:rgba(6,10,18,.72);display:-webkit-box;display:flex;-webkit-box-align:center;-webkit-box-pack:center;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.ck-mask[hidden]{display:none}
.ck-card{width:100%;max-width:420px;background:#161b22;color:#eaecef;border:1px solid #2b3139;border-radius:16px;padding:22px 20px 18px;box-shadow:0 18px 50px rgba(0,0,0,.35);font:14px/1.5 "PingFang SC","Microsoft YaHei",sans-serif;box-sizing:border-box}
.ck-card h2{margin:0;font-size:18px;font-weight:700;text-align:center;color:#fff}
.ck-sub{margin:6px 0 16px;text-align:center;color:#848e9c;font-size:13px}
.ck-amount{margin:0 0 14px;text-align:center;font-size:32px;font-weight:700;color:#fff}
.ck-clock{margin:0 auto 16px;width:108px;text-align:center;padding:6px 14px;border-radius:999px;background:#2b3139;color:#fcd535;font-size:20px;font-weight:700}
.ck-label{margin:0 0 6px;color:#848e9c;font-size:12px}
.ck-addr{margin:0;padding:12px;border-radius:10px;background:#0b0e11;border:1px solid #2b3139;color:#f0b90b;font-family:Consolas,monospace;font-size:14px;line-height:1.45;word-break:break-all}
.ck-copy,.ck-close{width:100%;height:44px;margin-top:12px;border:0;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}
.ck-copy{background:#fcd535;color:#1e2329}
.ck-close{background:transparent;color:#848e9c}
