* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #e8f3fb;
  color: #1a3348;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
#app { max-width: 750px; margin: 0 auto; min-height: 100vh; background: #eef6fc; }
.hero { position: relative; overflow: hidden; }
.hero-img { display: block; width: 100%; height: 168px; object-fit: cover; }
.hero-mask {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(180deg, rgba(0,70,140,0) 0%, rgba(0,70,140,.55) 100%);
  color: #fff;
}
.hero-title { font-size: 22px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.hero-sub { margin-top: 4px; font-size: 13px; opacity: .95; }
main { padding: 0 14px 36px; margin-top: -18px; position: relative; }
.card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 91, 172, 0.08);
}
h2 { margin: 0 0 12px; font-size: 17px; color: #005bac; }
label { display: block; font-size: 13px; color: #5a7388; margin: 10px 0 6px; }
input {
  width: 100%; height: 44px;
  border: 1px solid #c9def0; border-radius: 12px;
  padding: 0 12px; font-size: 15px; background: #f7fbfe;
}
input:focus { outline: none; border-color: #005bac; background: #fff; }
.row { display: flex; gap: 8px; align-items: center; }
.row input { flex: 1; }
button, .btn {
  appearance: none; border: 0; border-radius: 12px; height: 44px;
  padding: 0 14px; background: linear-gradient(90deg, #0077d4, #005bac);
  color: #fff; font-size: 15px; font-weight: 600;
}
button.ghost, .btn.ghost { background: #e6f2fb; color: #005bac; font-weight: 500; }
button:disabled { opacity: .55; }
.hint { color: #7d93a6; font-size: 12px; margin-top: 10px; line-height: 1.5; }
.hint a { color: #005bac; }
.match {
  margin: 10px 0 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f6ee;
  color: #1b6b4a;
  font-size: 13px;
  line-height: 1.55;
}
.match.warn { background: #eef6fc; color: #334e63; }
.match a { color: #005bac; }
.err { color: #c0392b; font-size: 13px; margin-top: 8px; min-height: 18px; }
.ok { color: #1b6b4a; }
.tabs { display: flex; background: #eef6fc; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.tabs button { flex: 1; height: 36px; background: transparent; color: #5a7388; font-weight: 500; }
.tabs button.on { background: #fff; color: #005bac; box-shadow: 0 2px 8px rgba(0,91,172,.12); }
.exam {
  display: block; text-decoration: none; color: inherit;
  padding: 12px 0; border-bottom: 1px solid #eef3f7;
}
.exam:last-child { border-bottom: 0; }
.exam .code { font-weight: 700; color: #005bac; font-size: 16px; }
.exam .meta { font-size: 13px; color: #5a7388; margin-top: 6px; }
.exam .date {
  float: right; font-size: 12px; color: #0077d4;
  background: #e6f2fb; border-radius: 999px; padding: 2px 8px;
}
.userbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.userbar img { width: 40px; height: 40px; }
.userbar .name { font-weight: 700; }
.userbar .phone { font-size: 12px; color: #7d93a6; }
.userbar-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.userbar-actions button { padding: 8px 12px; font-size: 13px; }
.nav { display: flex; gap: 8px; margin-bottom: 12px; }
.kv { display: flex; padding: 9px 0; border-bottom: 1px solid #eef3f7; font-size: 14px; }
.kv b { width: 88px; color: #5a7388; font-weight: 500; flex-shrink: 0; }
.summary { line-height: 1.75; font-size: 14px; color: #334e63; }
.cat { margin-top: 14px; }
.cat h3 {
  margin: 0 0 8px; font-size: 15px;
  background: linear-gradient(90deg, #dceefc, #f4faff);
  color: #005bac; padding: 8px 10px; border-radius: 8px;
}
.item { padding: 8px 4px 10px; border-bottom: 1px dashed #dce8f2; font-size: 14px; }
.item.bad { background: #fff4f6; border-radius: 8px; padding: 8px; }
.item .name { font-weight: 600; }
.pics img { width: 100%; border-radius: 10px; margin: 8px 0; background: #eef6fc; }
.pics .cap { font-size: 13px; color: #5a7388; }
.empty { text-align: center; color: #7d93a6; padding: 18px 0 8px; }
.empty img { width: 100%; max-width: 360px; display: block; margin: 0 auto 8px; border-radius: 10px; }
.rtabs { display: flex; overflow-x: auto; gap: 6px; margin: 0 0 12px; padding-bottom: 2px; }
.rtabs button { flex: 0 0 auto; height: 34px; padding: 0 12px; background: #e6f2fb; color: #005bac; font-size: 13px; }
.rtabs button.on { background: linear-gradient(90deg, #0077d4, #005bac); color: #fff; }
.hidden { display: none; }
.actions { display: flex; gap: 8px; margin: 0 0 12px; }
.actions button { flex: 1; }
.pkg {
  display: block; width: 100%; text-align: left;
  background: #f7fbfe; color: #1a3348; border: 1px solid #c9def0;
  margin-bottom: 8px; padding: 12px; height: auto; font-weight: 500;
}
.pkg.on { border-color: #005bac; background: #e6f2fb; color: #005bac; }
.pkg .desc { display: block; font-size: 12px; color: #7d93a6; font-weight: 400; margin-top: 4px; }
.gender-row { display: flex; gap: 10px; margin: 8px 0 4px; }
.gbtn {
  flex: 1; height: 42px; border-radius: 10px; border: 1px solid #c9d7e3;
  background: #fff; color: #334; font-size: 15px; font-family: inherit; cursor: pointer;
}
.gbtn.on { border-color: #005bac; background: #e6f2fb; color: #005bac; font-weight: 600; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.report-actions .btn { flex: 1; min-width: 140px; text-align: center; text-decoration: none; display: inline-block; line-height: 42px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 12px; color: #7d93a6; padding: 4px 0; }
.cal-grid button {
  height: 54px; padding: 4px 2px; background: #e6f2fb; color: #005bac;
  font-size: 13px; font-weight: 600; line-height: 1.2;
}
.cal-grid button small { display: block; font-size: 10px; font-weight: 400; }
.cal-grid button.off { background: #f0f3f6; color: #b0b8c0; }
.cal-grid button.on { background: linear-gradient(90deg, #0077d4, #005bac); color: #fff; }
.cal-grid button.blank { background: transparent; box-shadow: none; }
.ok-title { font-size: 20px; font-weight: 700; color: #1b6b4a; text-align: center; margin: 4px 0 12px; }
.tips {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff8e8;
  color: #6a4a12;
}
.tips-title { font-weight: 700; margin-bottom: 8px; color: #8a5a00; }
.tips-body { font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.appt { padding: 12px 0; border-bottom: 1px solid #eef3f7; }
.appt .meta { font-size: 13px; color: #5a7388; margin-top: 4px; }
.appt-card {
  margin: 0 0 12px; padding: 14px 14px 12px;
  border-radius: 14px; background: #f7fbfe;
  border: 1px solid #d5e6f5;
  box-shadow: 0 4px 14px rgba(0, 91, 172, 0.06);
}
.appt-card.off {
  background: #f5f7f9; border-color: #e2e8ee;
  box-shadow: none; opacity: 0.88;
}
.appt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.appt-date {
  font-size: 20px; font-weight: 700; color: #005bac; line-height: 1.2;
}
.appt-date small {
  display: block; margin-top: 2px;
  font-size: 12px; font-weight: 500; color: #7d93a6;
}
.appt-status {
  flex-shrink: 0; font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 4px 10px; line-height: 1.2;
}
.appt-status.ok { background: #e6f7ef; color: #1b6b4a; }
.appt-status.off { background: #eef1f4; color: #8a96a3; }
.appt-pkg {
  margin-top: 10px; font-size: 16px; font-weight: 700; color: #1a3348; line-height: 1.35;
}
.appt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.appt-tags .tag {
  font-size: 12px; color: #3d6488; background: #e6f2fb;
  border-radius: 999px; padding: 3px 9px;
}
.appt-tags .tag.ent { background: #fff4e5; color: #8a5a00; }
.appt-ops { margin-top: 12px; }
.appt-ops button { width: 100%; height: 38px; }
