:root {
  --blue: #2b6bf3;
  --blue-deep: #2258cf;
  --green: #21a35a;
  --ink: #1e2c4f;
  --muted: #8a95ab;
  --line: #e7ecf5;
  --page: #eef2fa;
  --card: #ffffff;
  --step-idle-bg: #e3e9f5;
  --step-idle-text: #a3aec4;
  --hero-top: #38599f;
  --hero-bottom: #263f7c;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page);
  color: var(--ink);
  padding-bottom: 76px;
}

/* ---------- 头部 ---------- */
.hero {
  background: linear-gradient(170deg, var(--hero-top), var(--hero-bottom));
  color: #fff;
  padding: 18px 20px 26px;
}
.brand { display: flex; flex-direction: column; line-height: 1.35; margin-bottom: 16px; }
.brand-en { font-family: Georgia, "Times New Roman", serif; font-size: 12px; letter-spacing: 3px; font-weight: 700; }
.brand-cn { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.brand-cn i { font-style: normal; font-size: 8px; vertical-align: super; }
.hero h1 { font-size: 27px; font-weight: 700; letter-spacing: .5px; }
.hero p { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.86); }

/* ---------- 主体 ---------- */
main { max-width: 480px; margin: 0 auto; padding: 14px 14px 30px; }
.card {
  background: var(--card); border-radius: 14px; padding: 16px;
  margin-bottom: 12px; box-shadow: 0 1px 3px rgba(30, 44, 79, .06);
}

/* 步骤行 */
.step { border-radius: 14px; margin-bottom: 12px; background: var(--card); box-shadow: 0 1px 3px rgba(30,44,79,.06); }
.step-head { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; }
.step-badge {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--blue);
}
.step-badge.done { background: var(--green); }
.step-badge.idle { background: var(--step-idle-bg); color: var(--step-idle-text); }
.step-title { font-size: 17px; font-weight: 700; flex: 1; }
.step-idle .step-title { color: var(--step-idle-text); font-weight: 600; }
.step-value { font-size: 15px; color: var(--blue); font-weight: 600; }
.step-edit { font-size: 14px; color: var(--muted); margin-left: 8px; }
.step-body { padding: 2px 16px 16px; }
.step-body.chips-body { padding-top: 0; }

/* 步骤 1：业务选择卡片 */
.step-body.biz-body { padding: 4px 12px 14px; }
.biz-item {
  display: flex; align-items: center; gap: 13px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}
.biz-item:last-child { margin-bottom: 0; }
.biz-item:active { transform: scale(.98); }
.biz-ico {
  width: 46px; height: 46px; border-radius: 12px; background: #eef3fc;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; flex: none; transition: background .15s;
}
.biz-txt { flex: 1; min-width: 0; }
.biz-name { font-size: 16.5px; font-weight: 700; }
.biz-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.biz-item .radio {
  margin-left: auto; width: 21px; height: 21px; border-radius: 50%;
  border: 1.8px solid #cfd8e8; flex: none; position: relative; transition: all .15s;
}
.biz-item.selected {
  border-color: var(--blue); background: #f4f8ff;
  box-shadow: 0 3px 12px rgba(43, 107, 243, .13);
}
.biz-item.selected .biz-ico { background: #dbe7fd; }
.biz-item.selected .radio {
  border-color: var(--blue); background: var(--blue);
}
.biz-item.selected .radio::after {
  content: ''; position: absolute; left: 6.5px; top: 2.5px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

/* 步骤 2：日期网格 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.date-cell, .slot-cell {
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  padding: 12px 6px; text-align: center; cursor: pointer;
  transition: all .12s;
}
.date-cell:active, .slot-cell:active { transform: scale(.96); }
.date-cell .d1 { font-size: 17px; font-weight: 700; }
.date-cell .d2 { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.date-cell.selected { background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 10px rgba(43,107,243,.3); }
.date-cell.selected .d1, .date-cell.selected .d2 { color: #fff; }
.date-cell.disabled { opacity: .45; cursor: not-allowed; }

/* 步骤 3：时段卡片 */
.slot-cell .s1 { font-size: 19px; font-weight: 700; }
.slot-cell .s2 { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.slot-cell.selected { background: var(--blue); border-color: var(--blue); box-shadow: 0 3px 10px rgba(43,107,243,.3); }
.slot-cell.selected .s1, .slot-cell.selected .s2 { color: #fff; }
.slot-cell.passed { background: #eef1f7; border-color: #eef1f7; cursor: not-allowed; }
.slot-cell.passed .s1 { color: #b7c0d2; text-decoration: line-through; }
.slot-cell.passed .s2 { color: #c2cad9; }
.slot-cell.full { opacity: .6; cursor: not-allowed; }

/* 步骤 4：填写信息 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 12px; }
.chip { background: #eef3fc; color: var(--ink); font-size: 13px; padding: 7px 12px; border-radius: 8px; }
.form-label { font-size: 14px; color: var(--ink); margin: 10px 0 8px; }
.form-input {
  width: 100%; border: 1px solid #dfe6f1; border-radius: 10px;
  padding: 13px 14px; font-size: 16px; outline: none; background: #fff; color: var(--ink);
}
.form-input:focus { border-color: var(--blue); }
.btn-primary {
  display: block; width: 100%; border: none; border-radius: 24px;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 600;
  padding: 14px; margin-top: 18px; cursor: pointer;
  transition: transform .1s, background .15s;
}
.btn-primary:active { background: var(--blue-deep); transform: scale(.985); }
.btn-primary[disabled] { opacity: .55; }
.form-tip { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }

/* 预约须知 */
.notice-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.notice li { font-size: 13.5px; color: #67718a; line-height: 1.75; margin-left: 18px; }

/* 预约成功 */
.success-card { text-align: center; padding: 30px 18px 24px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.success-icon svg { width: 30px; height: 30px; }
.success-card h2 { font-size: 22px; font-weight: 700; }
.success-card .sub { font-size: 14px; color: var(--muted); margin-top: 10px; }
.code-box {
  margin: 20px 4px; padding: 18px 12px; border: 1.5px dashed #c9d6ee;
  border-radius: 12px; background: #f6f9ff;
}
.code-box .label { font-size: 12.5px; color: var(--muted); letter-spacing: 2px; }
.code-box .code { font-size: 30px; font-weight: 800; color: var(--blue); letter-spacing: 3px; margin: 8px 0; font-family: "SF Mono", Menlo, Consolas, monospace; }
.code-box .meta { font-size: 14px; color: #4a5570; }
.code-box .qrimg { width: 180px; height: 180px; margin: 8px auto; display: block; }
.success-note { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.btn-outline {
  display: block; width: 100%; border: 1.4px solid var(--blue); border-radius: 24px;
  background: #fff; color: var(--blue); font-size: 16px; font-weight: 600;
  padding: 13px; margin-top: 12px; cursor: pointer;
}

/* 我的预约 */
.my-card { padding: 16px; }
.my-head { display: flex; align-items: center; }
.my-biz { font-size: 18px; font-weight: 700; flex: 1; }
.pill { font-size: 12.5px; padding: 4px 12px; border-radius: 14px; color: #fff; }
.pill.pending { background: var(--green); }
.pill.verified, .pill.cancelled, .pill.expired { background: #e4e9f2; color: #8a95ab; }
.my-line { font-size: 14px; color: #4a5570; margin-top: 9px; }
.my-line .code { font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.code-panel {
  margin-top: 12px; background: #f3f6fc; border-radius: 12px;
  padding: 16px 12px; text-align: center;
}
.code-panel .label { font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.code-panel .code { font-size: 26px; font-weight: 800; letter-spacing: 4px; margin: 8px 0 6px; font-family: "SF Mono", Menlo, Consolas, monospace; }
.code-panel .hint { font-size: 12.5px; color: var(--muted); }
.my-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.btn-cancel {
  border: 1.2px solid #e5b3b3; color: #d5493f; background: #fff;
  font-size: 14px; padding: 8px 18px; border-radius: 18px; cursor: pointer;
}
.empty { text-align: center; color: var(--muted); padding: 60px 0 30px; font-size: 14.5px; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; height: 62px; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: #9aa5ba; font-size: 12px;
}
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.active { color: var(--blue); font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  background: rgba(30,44,79,.92); color: #fff; font-size: 14px;
  padding: 10px 18px; border-radius: 20px; z-index: 50; max-width: 80vw;
}
