/* 顾客页面（穿线查询 / 顾客空间）。设计语言参考 Apple：浅灰底、白色圆角卡片、少边框、大标题，
   颜色只用来表示状态。只用于顾客页面；员工工作台有自己的样式。 */
:root {
  --blue: #0a66d8;
  --blue-press: #0852ad;
  --blue-soft: #e9f1fd;
  --green: #1e8e3e;
  --green-soft: #e7f6ec;
  --orange: #b25c00;
  --orange-soft: #fff3e3;
  --red: #c4291c;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #e5e5ea;
  --fill: #f2f2f7;
  --bg: #f5f5f7;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
[hidden] { display: none !important; }
button, input, select { font: inherit; letter-spacing: inherit; }
a { color: var(--blue); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.pre { white-space: pre-line; }

/* 顶栏：白色半透明，贴在顶部 */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 16px; min-height: 52px; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline); }
.brand { font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-name { color: var(--ink); font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.top-btn { border: 0; background: var(--fill); color: var(--blue); border-radius: 999px; padding: 6px 14px; min-height: 34px;
  cursor: pointer; font-size: 15px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.top-btn:active { background: #e5e5ea; }

/* 版面 */
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 56px; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; margin: 8px 0 8px; }
h1 + .muted { margin-top: 0; }
.back { border: 0; background: none; color: var(--blue); font-size: 17px; min-height: 44px; padding: 0; cursor: pointer; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* 表单 */
.form { display: grid; gap: 18px; margin-top: 20px; }
.form h2 { font-size: 20px; margin: 0; letter-spacing: -.015em; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field small { font-weight: 400; font-size: 13px; color: var(--muted); }
.field input, .field select { border: 0; border-radius: 12px; padding: 13px 14px; min-height: 52px; font-size: 19px;
  background: var(--fill); color: var(--ink); width: 100%; outline: none; transition: box-shadow .15s, background .15s; }
.field input::placeholder { color: #a1a1a6; }
.field input:focus, .field select:focus { background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px var(--blue-soft); }
.error { color: var(--red); min-height: 1.2em; margin: -6px 0 0; font-size: 15px; }
.ok { color: var(--green); margin: 0; min-height: 1.2em; font-weight: 600; }
.btn { border: 0; border-radius: 14px; background: var(--blue); color: #fff; min-height: 54px; font-size: 17px; font-weight: 600;
  cursor: pointer; width: 100%; transition: background .15s, opacity .15s; }
.btn:active { background: var(--blue-press); }
.btn:disabled { opacity: .5; }
.btn.secondary { background: var(--fill); color: var(--blue); margin-top: 20px; }
.btn.secondary:active { background: #e5e5ea; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.link { justify-self: start; border: 0; background: none; color: var(--blue); padding: 2px 0; min-height: 36px; font-size: 15px; cursor: pointer; text-align: left; }

/* 场馆选择：两段式切换 */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--fill); border-radius: 14px; }
.segment { position: relative; display: block; cursor: pointer; }
.segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segment span { display: grid; gap: 1px; min-height: 56px; align-content: center; text-align: center; padding: 8px 6px; border-radius: 11px;
  color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.segment strong { font-size: 15px; font-weight: 600; line-height: 1.2; }
.segment small { font-size: 12px; line-height: 1.2; }
.segment input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
.segment input:checked + span small { color: var(--muted); }
.segment input:focus-visible + span { box-shadow: 0 0 0 2px var(--blue); }

/* 手机号：前面固定 +61 (0) */
.phone-input { display: flex; align-items: stretch; border-radius: 12px; background: var(--fill); overflow: hidden; transition: box-shadow .15s, background .15s; }
.phone-input:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px var(--blue-soft); }
.phone-input .prefix { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); font-size: 19px; white-space: nowrap; }
.field .phone-input input { background: transparent; box-shadow: none; padding-left: 6px; min-width: 0; flex: 1; }

/* 结果：每支拍子一张卡 */
.racquets { display: grid; gap: 12px; margin: 20px 0; }
.racquet { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.racquet.done { opacity: .7; }
.no { text-align: center; padding-right: 14px; border-right: 1px solid var(--hairline); }
.no small { display: block; font-size: 12px; color: var(--muted); }
.no strong { display: block; font-size: 36px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.info h2 { font-size: 19px; margin: 8px 0 2px; letter-spacing: -.015em; }
.info p { margin: 2px 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--fill); color: var(--muted); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ready { background: var(--green-soft); color: var(--green); }
.badge.in_progress { background: var(--blue-soft); color: var(--blue); }
.badge.express, .badge.unknown { background: var(--orange-soft); color: var(--orange); }
.badge.express::before { display: none; }

.shop-info h2 { font-size: 17px; margin: 0 0 8px; }
.shop-info p { margin: 4px 0; }
.shop-info a { font-weight: 600; text-decoration: none; }
.hint { margin-top: 14px !important; padding: 12px 14px; background: var(--green-soft); color: var(--green); border-radius: 12px; font-weight: 600; font-size: 15px; }

/* 顾客空间（打开顾客账号后才用到） */
.welcome { text-align: center; padding: 24px 0 8px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.tiles { display: grid; gap: 10px; margin-top: 18px; }
.tile { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 16px 18px; }
.tile:active { background: #fafafa; }
.tile.soon { opacity: .7; }
.tile-icon { display: inline-flex; width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue); font-size: 20px; font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.gap { margin-top: 16px; }
.notice { background: var(--orange-soft); color: #8a4600; font-weight: 600; margin: 12px 0; box-shadow: none; }

@media (max-width: 380px) {
  .two { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .racquet { grid-template-columns: 72px minmax(0, 1fr); }
  .no strong { font-size: 30px; }
}
.nowrap { white-space: nowrap; }
.eyebrow { margin: 0 0 2px !important; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.no small { white-space: nowrap; }
