/* 松解狮预约系统 · 共享样式（浅色主题） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --brand: #2E7D5B;        /* 松解狮主绿 */
  --brand-light: #E8F3EE;
  --brand-dark: #1F5B41;
  --accent: #FF9800;
  --danger: #E53935;
  --text: #1A1A1A;
  --text-sub: #6B7280;
  --border: #E5E7EB;
  --bg: #F5F6F7;
  --card: #FFFFFF;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 手机外壳 */
.phone {
  max-width: 420px; margin: 0 auto; min-height: 100vh; background: var(--bg);
  position: relative; box-shadow: 0 0 40px rgba(0,0,0,0.08);
}
.topbar {
  background: var(--brand); color: #fff; padding: 14px 16px; font-size: 17px;
  font-weight: 600; display: flex; align-items: center; gap: 10px;
  position: sticky; top: 0; z-index: 50;
}
.topbar .back { cursor: pointer; font-size: 20px; }
.topbar .right { margin-left: auto; font-size: 13px; font-weight: 400; opacity: .9; }

.page { padding: 14px; padding-bottom: 80px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display:flex; align-items:center; gap:6px;}

/* 底部 tabbar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  max-width: 420px; width: 100%; background: #fff; border-top: 1px solid var(--border);
  display: flex; z-index: 50;
}
.tabbar .tab {
  flex: 1; text-align: center; padding: 8px 0 10px; font-size: 11px; color: var(--text-sub);
}
.tabbar .tab.active { color: var(--brand); }
.tabbar .tab .ico { font-size: 20px; display: block; margin-bottom: 2px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 10px; font-size: 15px; font-weight: 500;
  background: var(--brand); color: #fff; transition: .15s; width: 100%;
}
.btn:active { transform: scale(.98); }
.btn:disabled { background: #C7CDD3; cursor: not-allowed; }
.btn-line { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; width: auto; }
.btn-gray { background: #EEF0F2; color: var(--text); }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }
.input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: #fff; font-family: inherit; color: var(--text);
}
.input:focus, select:focus { outline: none; border-color: var(--brand); }

/* 标签/徽章 */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px;
  background: var(--brand-light); color: var(--brand-dark);
}
.badge-gray { background: #EEF0F2; color: var(--text-sub); }
.badge-orange { background: #FFF3E0; color: #E65100; }
.badge-red { background: #FFEBEE; color: var(--danger); }
.badge-blue { background: #E3F2FD; color: #1565C0; }

.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.muted { color: var(--text-sub); font-size: 13px; }
.mt8{margin-top:8px;} .mt12{margin-top:12px;} .mb8{margin-bottom:8px;}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* 选择块（时长/日期/时段） */
.chip {
  padding: 9px 4px; text-align: center; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; background: #fff; transition: .12s;
}
.chip.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip.disabled { background: #F0F0F0; color: #BBB; border-color: #EEE; cursor: not-allowed; }

/* 时段网格 */
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot {
  padding: 12px 6px; text-align: center; border-radius: 10px; font-size: 14px;
  border: 1.5px solid var(--border); background: #fff; transition: .12s;
}
.slot.free { background: #fff; color: var(--text); }
.slot.sel { background: var(--brand); color: #fff; border-color: var(--brand); font-weight:600; }
.slot.disabled { background: #F0F0F0; color: #BBB; border-color: #EEE; cursor: not-allowed; }

/* 列表项 */
.list-item {
  background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--brand);
  flex-shrink: 0;
}

/* 空态 */
.empty { text-align: center; padding: 50px 20px; color: var(--text-sub); }
.empty .ico { font-size: 44px; margin-bottom: 10px; }

/* toast */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 10px 18px; border-radius: 20px;
  font-size: 14px; z-index: 999; opacity: 0; transition: .3s; pointer-events: none; max-width: 80%;
}
.toast.show { opacity: 1; }

/* 弹层 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 100; display:none; }
.mask.show { display: block; }
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); max-width: 420px; width: 100%;
  background: #fff; border-radius: 16px 16px 0 0; padding: 20px 16px; z-index: 101;
  transform: translateX(-50%) translateY(100%); transition: .25s; box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.sheet.show { transform: translateX(-50%) translateY(0); }
.sheet-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; text-align:center;}

/* 会员码 */
.qr-box { text-align: center; padding: 20px; }
.qr-code { width: 200px; height: 200px; margin: 0 auto; }

/* PC 后台 */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 200px; background: var(--brand-dark); color: #fff; flex-shrink: 0; }
.sidebar .logo { padding: 20px 16px; font-size: 17px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar .nav-item { padding: 13px 20px; font-size: 14px; cursor: pointer; opacity: .85; display:flex; gap:8px; }
.sidebar .nav-item:hover { background: rgba(255,255,255,.08); opacity: 1; }
.sidebar .nav-item.active { background: var(--brand); opacity: 1; border-left: 3px solid var(--accent); }
.main { flex: 1; padding: 24px; overflow-x: auto; }
.main-header { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 11px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
th { background: #FAFBFC; font-weight: 600; color: var(--text-sub); }
tr:hover td { background: #FAFBFC; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar select { width: auto; min-width: 140px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 26px; font-weight: 700; color: var(--brand); }
.stat-card .lbl { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; display: none; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-box { background: #fff; border-radius: 12px; padding: 24px; width: 440px; max-width: 92vw; max-height: 88vh; overflow-y: auto; }
.modal-title { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.checkbox-row { display:flex; align-items:center; gap:6px; }
