/* ===== MVP 扩展样式 ===== */

.home-filter-panel { padding-bottom: 0; }

.home-hot-scroll {
  display: flex;
  gap: 10px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-hot-scroll::-webkit-scrollbar { display: none; }

.hot-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.hot-chip:active {
  transform: scale(.97);
  border-color: rgba(15, 118, 110, 0.18);
}

.hot-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hot-chip-icon svg {
  width: 18px;
  height: 18px;
}

.hot-chip-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.hot-chip-purple .hot-chip-icon { background: #F3EEFF; color: #7C3AED; }
.hot-chip-blue .hot-chip-icon { background: #EEF4FF; color: #3B6DB8; }
.hot-chip-red .hot-chip-icon { background: #FFEDD5; color: #C2410C; }
.hot-chip-orange .hot-chip-icon { background: #FFF7ED; color: #EA580C; }
.hot-chip-green .hot-chip-icon { background: #ECFDF5; color: #059669; }

.home-filter-trust {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px 16px;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-muted);
  background: linear-gradient(180deg, transparent, rgba(240, 253, 250, 0.65));
}

.home-filter-trust svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--primary);
}

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

.search-bar input { flex: 1; }

.filter-trigger {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0 12px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.filter-sheet.show {
  pointer-events: auto;
  visibility: visible;
}

.filter-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.filter-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .25s ease;
}

.filter-sheet.show .filter-sheet-panel { transform: translateY(0); }

.filter-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.filter-sheet-head button {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
}

.filter-sheet-body {
  overflow-y: auto;
  padding: 12px 16px 80px;
  flex: 1;
}

.filter-sheet-foot {
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-light);
  background: var(--white);
}

.filter-sheet-foot button { flex: 1; }

/* 城市选择面板 */
.city-sheet-body {
  padding: 0 16px 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.city-sheet-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  background: #fff7ed;
  border-radius: 8px;
}

.city-sheet-section {
  margin-bottom: 20px;
}

.city-sheet-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.city-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.city-grid-item strong {
  font-size: 15px;
  color: var(--text);
}

.city-grid-item span {
  font-size: 11px;
  color: var(--text-muted);
}

.city-grid-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.city-grid-item.active strong {
  color: var(--primary-dark);
}

.city-grid-item.soon {
  opacity: 0.65;
}

.filter-group { margin-bottom: 20px; }
.filter-group-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-chip {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.filter-chip.active { border-color: var(--primary); color: var(--primary); background: #FDEDED; }
.filter-chip input { display: none; }

.filter-checks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.filter-checks label { display: flex; align-items: center; gap: 8px; }
.filter-select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }

.match-reasons {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.match-reason-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.match-reason-tag {
  font-size: 11px;
  background: #F0F7FF;
  color: #3B6DB8;
  padding: 3px 8px;
  border-radius: 4px;
}

.detail-qual-block {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 12px;
}

.qual-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.qual-row span { color: var(--text-muted); flex-shrink: 0; }
.qual-row strong { text-align: right; font-size: 12px; }

.map-page { padding-bottom: 24px; }

.map-launch-note {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: #fff7ed;
  border-bottom: 1px solid #ffedd5;
}

.map-legend {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  font-size: 12px;
  background: var(--white);
}

.map-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.map-legend .green { background: #16A34A; }
.map-legend .orange { background: #EA580C; }
.map-legend .gray { background: #9CA3AF; }

.map-canvas {
  position: relative;
  height: 220px;
  margin: 12px 16px;
  background: linear-gradient(180deg, #E8F4EA 0%, #D4E8F7 100%);
  border-radius: 12px;
  overflow: hidden;
}

.map-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: rgba(0,0,0,.08);
}

.map-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.map-pin span {
  transform: rotate(45deg);
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
}

.map-pin-available { background: #16A34A; }
.map-pin-queue { background: #EA580C; }
.map-pin-full { background: #9CA3AF; }

.map-district-list { padding: 0 16px; }

.map-district-block {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.map-district-head {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.map-district-head em { font-style: normal; font-weight: 400; color: var(--text-muted); font-size: 12px; margin-left: 6px; }

.map-inst-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.map-inst-name { font-size: 13px; flex: 1; }

.status-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.status-pill.green { background: #DCFCE7; color: #166534; }
.status-pill.orange { background: #FFEDD5; color: #9A3412; }
.status-pill.gray { background: #F3F4F6; color: #6B7280; }

.desk-page { background: var(--bg); min-height: 100vh; padding-bottom: 60px; }
.desk-header h1 { font-size: 17px; }
.desk-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.desk-body { padding: 12px 16px 80px; }

.desk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.desk-stat {
  background: var(--white);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}

.desk-stat strong { display: block; font-size: 18px; color: var(--primary); }
.desk-stat span { font-size: 11px; color: var(--text-muted); }

.desk-section {
  background: var(--white);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.desk-section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.desk-section-title em { font-style: normal; font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 8px; }

.bed-status-picker select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.desk-lead-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

.desk-lead-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.desk-lead-head select { font-size: 12px; padding: 4px 8px; }
.desk-lead-body p { font-size: 12px; color: var(--text-secondary); margin: 4px 0; }

.admin-inst-row, .admin-lead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.admin-inst-row strong, .admin-lead-row strong { display: block; font-size: 14px; }
.admin-inst-row span, .admin-lead-row span { font-size: 12px; color: var(--text-muted); }
.admin-lead-row em { display: block; font-style: normal; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.admin-summary {
  background: var(--bg);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.rules-card {
  background: var(--white);
  padding: 16px;
  border-radius: 12px;
}

.rules-card h4 { font-size: 15px; margin-bottom: 12px; }
.rules-list { padding-left: 20px; font-size: 13px; line-height: 1.8; }

.mode-switch-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  background: #1F2937;
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom);
}

.mode-switch-bar button {
  flex: 1;
  border: none;
  background: none;
  color: #9CA3AF;
  font-size: 12px;
  padding: 12px 4px;
  cursor: pointer;
  font-family: inherit;
}

.mode-switch-bar button:active { color: var(--white); }

.detail-action-row { flex-wrap: wrap; gap: 6px; }
.detail-action-row .btn-outline-sm.active { border-color: var(--primary); color: var(--primary); }

.menu-icon-orange { background: #FFF7ED; color: #EA580C; }
.menu-icon-blue { background: #EFF6FF; color: #2563EB; }
