/* ============================================================
   万相画室 X 金色童年 · 学员写真日 —— 莫兰迪设计令牌（报名页 / 名单页共用）
   ============================================================ */
:root {
  --bg: #E9E5E0;
  --card: #F7F4F0;
  --ink: #5F5A54;
  --muted: #8E8780;
  --line: #DCD5CC;
  --accent: #A8B5A2;
  --accent-deep: #7C8A74;
  --accent-ink: #4E5A48;
  --rose: #C7ADA5;
  --mauve: #B1A6BD;
  --full: #B9AFA6;
  --full-bg: #E3DFD9;
  --shadow: 0 4px 16px rgba(95, 90, 84, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  min-height: 100vh;
}

/* ---------- 标题区（莫兰迪圆斑装饰，纯 CSS 无图片） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 30px 24px 26px;
  text-align: center;
}
.deco { position: absolute; border-radius: 50%; pointer-events: none; }
.deco.d1 { width: 120px; height: 120px; background: var(--rose);  opacity: .32; top: -46px;  left: -34px; }
.deco.d2 { width: 88px;  height: 88px;  background: var(--mauve); opacity: .30; top: -26px;  right: -22px; }
.deco.d3 { width: 150px; height: 150px; background: var(--accent); opacity: .30; bottom: -70px; right: -46px; }
.hero > p, .hero > h1 { position: relative; }

.studio  { font-size: 13px; letter-spacing: 6px; text-indent: 6px; color: var(--muted); }
.title   { font-size: 22px; font-weight: 700; margin-top: 6px; }
.date    { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-top: 10px; }
.note    { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-top: 16px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: block; }

/* ---------- 提示与占位 ---------- */
.loading-text { color: var(--muted); text-align: center; padding: 18px 0; }
.load-error  { text-align: center; }
.msg-error   { color: var(--rose); font-size: 13px; margin-top: 10px; }
.retry-row   { margin-top: 10px; text-align: center; }

/* ---------- 时段卡片 ---------- */
.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 13px 14px;
  background: #FBF8F4;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.slot:first-child { margin-top: 0; }
.slot-time  { font-size: 15px; font-weight: 600; }
.slot-right { display: flex; align-items: center; gap: 8px; }
.slot-remain { font-size: 13px; color: var(--muted); }
.slot-badge {
  font-size: 11px; font-weight: 600; color: #fff;
  background: var(--full);
  border-radius: 999px;
  padding: 2px 10px;
}
.dots { display: inline-flex; gap: 4px; }
.dot  {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--muted);
  display: inline-block;
}
.dot.on { background: var(--accent-deep); border-color: var(--accent-deep); }

/* 选中态：accent 描边 2px + 浅绿底 + 对勾 */
.slot.selected { border: 2px solid var(--accent); background: #EEF1EA; padding: 12.5px 13.5px; }
.slot-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-deep); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 2px; flex: none;
}
.icon-check { width: 12px; height: 12px; display: block; }

/* 已满态：置灰不可选 */
.slot.full { background: var(--full-bg); cursor: not-allowed; }
.slot.full .slot-time { color: var(--muted); }
.slot.full .dot    { border-color: var(--full); }
.slot.full .dot.on { background: var(--full); border-color: var(--full); }

/* ---------- 表单与按钮 ---------- */
.name-input {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #FBF8F4;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.name-input:focus { border-color: var(--accent); background: #fff; }
.name-input::placeholder { color: var(--muted); }

.btn-primary {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .15s;
}
.btn-primary:active { background: var(--accent-deep); }
.btn-primary:disabled { background: #C9C3BA; cursor: default; }
.btn-primary.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost {
  display: inline-block;
  padding: 10px 26px;
  font: inherit;
  font-size: 14px;
  color: var(--accent-deep);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  cursor: pointer;
}
.btn-ghost:active { background: #EEF1EA; }

/* ---------- 成功视图 ---------- */
.success-view { text-align: center; padding-top: 36px; }
.success-circle {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.success-check { width: 40px; height: 40px; }
.success-title { font-size: 20px; font-weight: 700; margin-top: 16px; }
.success-card { text-align: left; }
.success-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px;
}
.success-row + .success-row { border-top: 1px dashed var(--line); }
.success-label { font-size: 13px; color: var(--muted); }
.success-value { font-size: 16px; font-weight: 600; }
.success-tip   { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- 名单页（admin.html） ---------- */
.hero-compact { padding: 24px 20px 20px; }

.admin-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-total { font-size: 14px; }
.admin-total b { font-size: 22px; color: var(--accent-ink); margin: 0 2px; }

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.group-time  { font-size: 15px; font-weight: 600; }
.group-count { font-size: 13px; color: var(--muted); }
.group-empty { font-size: 13px; color: var(--muted); }

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.name-tag {
  font-size: 13px;
  background: #EEF1EA;
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 5px 12px;
}
