/* =============================================================================
 * 学校功能室使用申请 · 网页版样式（申请人页 + 管理端共用）
 * 视觉规范与小程序一致：主色 #2563EB，圆角 14px，无渐变，浅色主题，移动优先。
 * ========================================================================== */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-soft: #EFF4FF;
  --text: #111827;
  --text-sub: #6B7280;
  --text-weak: #9CA3AF;
  --border: #E5E7EB;
  --bg: #F7F8FA;
  --white: #FFFFFF;

  --pending-fg: #F59E0B;
  --pending-bg: #FFF4E5;
  --approved-fg: #16A34A;
  --approved-bg: #E8F8EE;
  --rejected-fg: #DC2626;
  --rejected-bg: #FEF2F2;
  --rejected-bd: #FECACA;
  --cancelled-fg: #6B7280;
  --cancelled-bg: #F3F4F6;
  --today-bg: #F5F8FF;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(17, 24, 39, .04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #EEF1F6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a { color: var(--primary); text-decoration: none; }

[hidden] { display: none !important; }

/* =============================================================================
 * 1. 骨架
 * ========================================================================== */

.app {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .04);
}

.main {
  flex: 1 1 auto;
  padding-bottom: 8px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--primary);
  color: #fff;
}

.topbar__main { min-width: 0; }

.topbar__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2px;
}

.topbar__sub {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.topbar__user {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
}

.topbar__action {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.topbar__action:active { background: rgba(255, 255, 255, .28); }

/* =============================================================================
 * 2. 面板 / 卡片
 * ========================================================================== */

.panel {
  background: var(--white);
  margin: 10px 12px;
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.panel--nogap { padding: 0 0 8px; }

.panel__hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--text-weak);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
}

/* =============================================================================
 * 3. 房间 Tab / 周切换 / 图例
 * ========================================================================== */

.roomtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.roomtab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  color: var(--text-sub);
  transition: background .15s, color .15s, border-color .15s;
}

.roomtab__desc {
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-weak);
  text-align: center;
  /* 最多两行：容量 + 房间特色，窄屏下换行而不是截断成省略号 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
}

.roomtab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.roomtab.is-active .roomtab__desc { color: rgba(255, 255, 255, .82); }

.weekbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weekbar__arrow {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-sub);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weekbar__arrow:disabled {
  color: #D1D5DB;
  background: #FAFAFB;
  cursor: not-allowed;
}

.weekbar__center {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}

.weekbar__range {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.weekbar__hint {
  font-size: 11px;
  color: var(--text-weak);
  margin-top: 1px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-sub);
}

.legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
}

.legend__dot--pending { background: var(--pending-bg); border-color: var(--pending-fg); }
.legend__dot--approved { background: var(--approved-bg); border-color: var(--approved-fg); }
.legend__dot--mine { background: var(--primary); border-color: var(--primary); }
.legend__dot--picked { background: var(--primary-soft); border: 2px solid var(--primary); }

/* =============================================================================
 * 4. 周网格（7 节次 × 7 天）
 * ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: 54px repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 10px 4px;
}

.grid__corner { }

.grid__day {
  text-align: center;
  padding: 2px 0 4px;
  border-radius: 8px;
  line-height: 1.2;
}

.grid__day-name {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 500;
}

.grid__day-date {
  font-size: 10px;
  color: var(--text-weak);
  margin-top: 1px;
}

.grid__day.is-today { background: var(--today-bg); }
.grid__day.is-today .grid__day-name { color: var(--primary); font-weight: 700; }
.grid__day.is-today .grid__day-date { color: var(--primary); }

.grid__slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2px;
  line-height: 1.15;
}

.grid__slot-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
}

.grid__slot-time {
  font-size: 9.5px;
  color: var(--text-weak);
  white-space: nowrap;
  letter-spacing: -.2px;
}

/* 桌面端空间够，直接显示完整时间段（移动端只显示开始时间） */
.grid__slot-range { display: none; }

.grid__slot.is-night .grid__slot-name { color: var(--text); }

.cell {
  position: relative;
  min-height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-weak);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .08s ease;
  overflow: hidden;
}

.cell:active { transform: scale(.96); }

.cell--today { background: var(--today-bg); }

.cell--pending {
  background: var(--pending-bg);
  border-color: var(--pending-fg);
  color: #B45309;
  font-weight: 600;
}

.cell--approved {
  background: var(--approved-bg);
  border-color: var(--approved-fg);
  color: #15803D;
  font-weight: 600;
}

.cell--mine {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.cell--past {
  background: #FAFAFB;
  border-color: #F1F2F4;
  color: #D1D5DB;
}

.cell--past.cell--pending,
.cell--past.cell--approved {
  opacity: .72;
}

.cell--mine.cell--past { opacity: .8; }

/* 多选选中态：主色描边 + 浅色底 + 对勾，和「已占用」明显区分 */
.cell--selected {
  background: var(--primary-soft);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.cell--selected.cell--today { background: var(--primary-soft); }

/* 409 冲突后闪烁一下，让用户看清是哪几格被占了 */
.cell--flash {
  animation: cell-flash .8s ease-in-out 2;
  border-color: var(--rejected-fg);
}

@keyframes cell-flash {
  0% { background: var(--rejected-bg); color: var(--rejected-fg); }
  50% { background: #fff; color: var(--rejected-fg); }
  100% { background: var(--rejected-bg); color: var(--rejected-fg); }
}

.cell__text { pointer-events: none; }

.grid__note {
  margin: 2px 12px 6px;
  font-size: 11px;
  color: var(--text-weak);
}

/* 桌面端：格子放大一点，避免 900px 宽下网格被压扁 */
@media (min-width: 720px) {
  .grid {
    grid-template-columns: 76px repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 14px 14px 6px;
  }

  .grid__slot-name { font-size: 12.5px; }
  .grid__slot-time { display: none; }
  .grid__slot-range {
    display: block;
    font-size: 11px;
    color: var(--text-weak);
    white-space: nowrap;
  }
  .grid__day-name { font-size: 12.5px; }
  .grid__day-date { font-size: 11px; }
  .cell { min-height: 54px; font-size: 12.5px; }
  .grid__note { font-size: 12px; }
}

/* =============================================================================
 * 5. 表单控件
 * ========================================================================== */

.field {
  display: block;
  margin-bottom: 12px;
}

.field__label {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 5px;
}

.field__label em {
  color: var(--rejected-fg);
  font-style: normal;
}

.input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.input::placeholder { color: #C0C4CC; }

.input--area {
  min-height: 62px;
  resize: vertical;
  line-height: 1.45;
}

.form__error {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--rejected-fg);
  background: var(--rejected-bg);
  border: 1px solid var(--rejected-bd);
  border-radius: 8px;
  padding: 7px 10px;
}

/* =============================================================================
 * 6. 按钮
 * ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: opacity .15s, background .15s;
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:active { background: var(--primary-dark); }

.btn--ghost { background: #fff; border-color: var(--border); color: var(--text-sub); }
.btn--ghost:active { background: #F3F4F6; }

.btn--danger { background: #fff; border-color: var(--rejected-bd); color: var(--rejected-fg); }
.btn--danger:active { background: var(--rejected-bg); }

.btn--success { background: var(--approved-fg); color: #fff; }

.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }

.btn--block { width: 100%; }

.btn:disabled,
.btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* =============================================================================
 * 7. 状态标签
 * ========================================================================== */

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tag--pending { color: var(--pending-fg); background: var(--pending-bg); border-color: var(--pending-fg); }
.tag--approved { color: var(--approved-fg); background: var(--approved-bg); border-color: var(--approved-fg); }
.tag--rejected { color: var(--rejected-fg); background: var(--rejected-bg); border-color: var(--rejected-bd); }
.tag--cancelled { color: var(--cancelled-fg); background: var(--cancelled-bg); border-color: var(--border); }

/* =============================================================================
 * 8. 列表
 * ========================================================================== */

.list { padding: 0 12px; }

.item {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}

.item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.item__when {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-sub);
}

.item__meta {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  font-size: 12px;
  color: var(--text-sub);
}

.item__meta dt { color: var(--text-weak); }
.item__meta dd { margin: 0; color: var(--text-sub); word-break: break-all; }

.item__foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F3F4F6;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.item__reason {
  margin-top: 8px;
  font-size: 12px;
  color: var(--rejected-fg);
  background: var(--rejected-bg);
  border-radius: 8px;
  padding: 6px 9px;
  word-break: break-all;
}

.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-weak);
  font-size: 13px;
}

.empty__title { font-size: 14px; color: var(--text-sub); margin-bottom: 4px; }

.loading {
  padding: 34px 16px;
  text-align: center;
  color: var(--text-weak);
  font-size: 13px;
}

.skeleton {
  height: 84px;
  border-radius: var(--radius);
  background: #F3F4F6;
  margin-bottom: 10px;
}

/* =============================================================================
 * 9. 底部导航
 * ========================================================================== */

.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar__item {
  flex: 1;
  padding: 10px 0 9px;
  font-size: 12.5px;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tabbar__item.is-active {
  color: var(--primary);
  font-weight: 600;
}

.tabbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.tabbar__item.is-active .tabbar__dot { background: var(--primary); }

/* =============================================================================
 * 10. 底部抽屉 / 弹窗
 * ========================================================================== */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.sheet.is-open { display: block; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .45);
}

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  animation: sheet-up .2s ease-out;
}

.sheet__panel--sm { border-radius: 18px 18px 0 0; }

@keyframes sheet-up {
  from { transform: translateY(14px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 720px) {
  .sheet__panel {
    left: 50%;
    right: auto;
    bottom: 32px;
    transform: translateX(-50%);
    width: 520px;
    max-width: calc(100vw - 48px);
    border-radius: 18px;
    animation: none;
  }
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sheet__title {
  font-size: 16px;
  font-weight: 600;
}

.sheet__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-sub);
}

.sheet__close {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--text-weak);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
}

.sheet__body { padding-bottom: 4px; }

.sheet__foot {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sheet__foot .btn { flex: 1; }

.confirm__text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.6;
}

.detail__rows {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 9px 10px;
  font-size: 13px;
}

.detail__label { color: var(--text-weak); }
.detail__value { color: var(--text); word-break: break-all; }

.counter {
  text-align: right;
  font-size: 11px;
  color: var(--text-weak);
  margin-top: 4px;
}

/* =============================================================================
 * 10.5 多选：底部操作条 / 表单里的已选清单 / 卡片里的时段清单
 * ========================================================================== */

/* 选中 ≥1 个时段时浮出的固定操作条（贴在底部导航上方） */
.selectbar {
  position: fixed;
  left: 50%;
  bottom: calc(50px + env(safe-area-inset-bottom));
  z-index: 25;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(17, 24, 39, .08);
}

.selectbar[hidden] { display: none; }

.selectbar__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.selectbar__count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.selectbar__hint {
  font-size: 11px;
  color: var(--text-weak);
  white-space: nowrap;
}

.selectbar__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

/* 操作条出现时给内容留出空间，避免挡住最后一行格子 */
.app--selectbar .main { padding-bottom: 68px; }

/* 表单顶部的「已选时段」清单 */
.pickslots {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FBFCFE;
  max-height: 148px;
  overflow-y: auto;
}

.pickslots__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--text);
  border-bottom: 1px solid #F1F2F4;
}

.pickslots__item:last-child { border-bottom: none; }

.pickslots__text { word-break: break-all; }

.pickslots__remove {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F3F4F6;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pickslots__remove:active { background: #E5E7EB; }

.pickslots__empty {
  padding: 10px;
  font-size: 12px;
  color: var(--text-weak);
  text-align: center;
}

/* 卡片里的时段清单（我的申请 / 管理端） */
.slotlist {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #F7F8FA;
  border: 1px solid var(--border);
}

.slotlist__item {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.7;
  word-break: break-all;
}

.slotlist__item + .slotlist__item {
  border-top: 1px dashed var(--border);
}

/* =============================================================================
 * 11. Toast
 * ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 90;
  transform: translateX(-50%) translateY(6px);
  max-width: 78vw;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(17, 24, 39, .9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================================================
 * 12. 管理端
 * ========================================================================== */

.logincard {
  background: #fff;
  border-radius: var(--radius);
  margin: 26px 16px;
  padding: 22px 18px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .06);
  max-width: 400px;
}

@media (min-width: 720px) {
  .logincard { margin: 60px auto; }
}

.logincard__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.logincard__hint {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
}

.logincard__hint code {
  background: #EFF2F7;
  border: 1px solid #DDE2EA;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.segmented {
  display: flex;
  gap: 6px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 12px;
}

.segmented__item {
  flex: 1;
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.segmented__item.is-active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .08);
}

.segmented__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pending-bg);
  color: #B45309;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 600;
}

.qr__head { display: flex; justify-content: space-between; align-items: flex-start; }

.qr__hint {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--text-weak);
}

.qr__body {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  align-items: center;
}

.qr__img {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr__img svg { width: 100%; height: 100%; display: block; }

.qr__side { flex: 1 1 auto; min-width: 0; }

.qr__url {
  font-size: 11.5px;
  color: var(--text-sub);
  background: #F7F8FA;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 8px;
  word-break: break-all;
  user-select: all;
}

@media (max-width: 359px) {
  /* 320px 级窄屏：压缩左侧时间列，保证 7 个日期列都还能点到 */
  .grid { grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 3px; padding: 8px 8px 4px; }
  .grid__slot-name { font-size: 10px; }
  .grid__slot-time { font-size: 9px; }
  .cell { min-height: 38px; font-size: 10px; }
  /* 房间选项卡只剩容量，容纳不下「· 房间特色」，隐藏避免断字 */
  .roomtab__desc-more { display: none; }
  .qr__body { flex-direction: column; align-items: stretch; }
  .qr__img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

.panel--loading { opacity: .55; pointer-events: none; }
