:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-press: #0062c4;
  --blue-soft: #e8f2fd;
  --orange: #c95400;
  --orange-soft: #fff1e4;
  --red: #c4291c;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.01em; }
a { color: var(--blue); }

/* 首屏 */
.hero { background: var(--card); }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-text { padding: 24px 20px 32px; }
.eyebrow { color: var(--blue); font-size: 15px; font-weight: 600; }
h1 { margin-top: 8px; font-size: 36px; line-height: 1.2; letter-spacing: -.02em; }
.lead { margin-top: 12px; color: var(--muted); }
.from { margin-top: 12px; color: var(--muted); font-size: 15px; text-align: center; }
.from b { color: var(--orange); }

.btn {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:active, .btn:hover { background: var(--blue-press); }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: default; }
.btn-hero { margin-top: 24px; }

/* 内容区 */
main { max-width: 1000px; margin: 0 auto; }
.section { padding: 40px 20px 0; }

.price-grid { display: grid; gap: 8px; margin-top: 16px; }
.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--card);
}
.price-qty { font-weight: 600; line-height: 1.3; }
.price-card strong { color: var(--orange); font-size: 32px; line-height: 1; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.price-card small { margin-left: 2px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.ladder-note { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--orange-soft); }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.steps b { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; }

.neighbor img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); background: var(--line); }
.neighbor h2 { margin-top: 20px; }
.neighbor p { margin-top: 8px; color: var(--muted); }

/* 预约表单 */
.book { scroll-margin-top: 0; }
form, .done { margin-top: 16px; padding: 20px; border-radius: 20px; background: var(--card); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.field { display: block; margin-bottom: 24px; }
.label { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; }
.label em { color: var(--muted); font-size: 14px; font-style: normal; font-weight: 400; }

input[type="text"], input[type="tel"], select, textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
select {
  padding: 11px 26px 11px 10px;
  font-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
}
select.empty { color: var(--muted); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #767679; opacity: 1; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .35);
  outline-offset: 1px;
  border-color: var(--blue);
}
.invalid input, .invalid select, input.invalid, .invalid .choice span { border-color: var(--red); }

.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.stepper { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { height: 54px; border: 0; background: var(--blue-soft); color: var(--blue); font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.stepper button[disabled] { background: var(--bg); color: #8a8a8e; cursor: default; }
.stepper output { text-align: center; font-size: 20px; font-weight: 600; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.choice span { display: flex; flex-direction: column; min-height: 66px; justify-content: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.choice small { color: var(--muted); font-size: 14px; font-weight: 400; }
.choice input:checked + span { border: 2px solid var(--blue); padding: 7px 13px; background: var(--blue-soft); }
.choice input:focus-visible + span { outline: 3px solid rgba(0, 113, 227, .35); outline-offset: 1px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.summary strong { color: var(--orange); font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
.summary small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; text-align: right; }
.summary small:empty { display: none; }

.terms { padding: 16px; border-radius: 12px; background: var(--bg); }
.terms h3 { font-size: 16px; }
.terms p { margin-top: 4px; font-size: 16px; }
.agree { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 0; font-weight: 600; cursor: pointer; }
.agree input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.terms.invalid { outline: 2px solid var(--red); }

.error { margin: 16px 0 0; color: var(--red); font-weight: 600; }
.field + .error { margin: -16px 0 24px; }
.terms + .error { margin: 12px 0 0; }
.btn-submit { margin-top: 16px; }
.hint { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }

.done { text-align: center; outline: none; }
.done-mark { width: 56px; height: 56px; margin: 8px auto 12px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 30px; font-weight: 700; line-height: 56px; }
.done h3 { font-size: 24px; }
.done p { margin-top: 8px; color: var(--muted); }
.done p b { color: var(--ink); white-space: nowrap; }
.done dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.done dt { color: var(--muted); }
.done dd { margin: 0; }

footer { max-width: 1000px; margin: 32px auto 0; padding: 0 20px 24px; color: var(--muted); font-size: 14px; }

/* 手机底部常驻预约条，首屏按钮或表单在屏幕上时收起 */
.sticky {
  position: fixed;
  inset: auto 0 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -1px 0 var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s;
}
.sticky b { color: var(--orange); font-size: 22px; }
.sticky-btn { padding: 10px 24px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; }
.sticky.off { transform: translateY(110%); }

@media (max-width: 399px) {
  form, .done { padding: 20px 16px; }
}

/* 再窄就放不下一整行日期和时段 */
@media (max-width: 359px) {
  .time-row { grid-template-columns: 1fr; }
}

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .time-row { grid-template-columns: 1.1fr 1fr; }
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .hero-img { height: 100%; aspect-ratio: auto; max-height: 620px; }
  .hero-text { max-width: 520px; padding: 48px; }
  h1 { font-size: 46px; }
  .btn-hero, .from { max-width: 280px; }
  .section { padding: 64px 32px 0; }
  .price-card { padding: 20px; }
  .price-qty { color: var(--muted); font-weight: 400; }
  .price-card strong { font-size: 44px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .neighbor { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: center; }
  .neighbor h2 { margin-top: 0; }
  form, .done { max-width: 620px; margin-inline: auto; padding: 32px; }
  .book h2 { max-width: 620px; margin-inline: auto; }
  footer { max-width: 684px; margin-top: 40px; padding-inline: 32px; }
  .sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky { transition: none; }
}
