* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #222;
}

body {
  min-height: 100vh;
}

.notice{
  background:#fff7e6;
  border-left:4px solid #faad14;
  color:#8a8174;
  font-size:13px;
  line-height:1.55;
  padding:10px 14px;
  margin-bottom:12px;
}

.notice strong{
  color:inherit;
}

.tip{
  color:#d46b08;
  font-weight:600;
}

.tip strong{
  font-weight:700;
}

.page {
  padding: 16px;
}

.card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

h1 {
  font-size: 22px;
  margin: 0 0 8px;
}

.sub {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}

.block {
  margin-top: 18px;
}

.parking-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 16px;
  padding: 14px 16px;
  border: 1px solid #d9e0e7;
  border-radius: 12px;
  background: #f8fafc;
}

.parking-status-main {
  min-width: 0;
}

.parking-status-label {
  font-size: 13px;
  color: #5e6a78;
  margin-bottom: 4px;
}

.parking-status-value {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #17202a;
}

.parking-status-meta {
  flex: 0 0 auto;
  max-width: 45%;
  text-align: right;
  font-size: 13px;
  color: #667085;
  line-height: 1.35;
}

.parking-free {
  background: #eefaf1;
  border-color: #b7e4c2;
}

.parking-free .parking-status-value {
  color: #15803d;
}

.parking-occupied {
  background: #fff1f2;
  border-color: #fecdd3;
}

.parking-occupied .parking-status-value {
  color: #be123c;
}

.parking-unknown {
  background: #f8fafc;
  border-color: #d9e0e7;
}

@media (max-width: 520px) {
  .parking-status-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .parking-status-meta {
    max-width: none;
    text-align: left;
  }
}

.block h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.lead-time-stats-card {
  margin-top: 16px;
  padding: 8px 10px 8px;
  border: 1px solid #d9e0e7;
  border-radius: 12px;
  background: #ffffff;
}

.lead-time-chart {
  height: 190px;
  min-height: 190px;
}

.lead-time-chart.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  font-size: 13px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff2f2;
  border: 1px solid #f3c2c2;
  color: #b42318;
  font-size: 16px;
  font-weight: 600;
}

.empty {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #666;
  font-size: 15px;
}

.tip {
  margin-top: 22px;
  color: #666;
  font-size: 14px;
}

.home-card {
  position: relative;
  z-index: 1;
}

.booking-entry-block {
  margin-top: 18px;
}

.home-booking-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
}

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.86);
  z-index: 9990;
}

.booking-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9991;
  padding: 0 12px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.booking-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.booking-drawer-inner {
  max-width: 760px;
  margin: 0 auto;
  margin-top: 10px;
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  padding: 14px 14px 18px;
  max-height: calc(88vh - 10px);
  overflow-y: auto;
}

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

.drawer-heading {
  min-width: 0;
  flex: 1;
}

.drawer-title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.drawer-subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #667085;
}

.drawer-close-btn {
  border: 0;
  border-radius: 10px;
  background: #e5e7eb;
  color: #111827;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

.fold-card {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.fold-card summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  display: flex;
  align-items: center;
  position: relative;
}

.fold-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.fold-action {
  margin-left: auto;
}

.fold-card summary::-webkit-details-marker {
  display: none;
}

.fold-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
}

.fold-action::before {
  content: "查看";
}

.fold-action::after {
  content: "▾";
  font-size: 14px;
  line-height: 1;
}

.fold-card[open] .fold-action::before {
  content: "收起";
}

.fold-card[open] .fold-action::after {
  content: "▴";
}

.fold-card-strong summary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.fold-card[open] summary {
  border-bottom: 1px solid #e5e7eb;
}

.fold-content {
  padding: 14px 16px 16px;
  background: #ffffff;
}

.fold-center {
  text-align: center;
}

.fold-note {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
