/* =====================================================
 * 区域选择组件（光明区 / 南山区 两站共用）
 * 全屏选择页 + 记住选择 + 导航切换入口
 * 风格与两站视觉系统一致（暖纸面 + 权威蓝 + 暖金）
 * ===================================================== */

.district-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(216, 155, 71, 0.14), transparent 60%),
    radial-gradient(1000px 500px at 10% 110%, rgba(61, 106, 142, 0.12), transparent 60%),
    #F6F1E4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.district-overlay[hidden] { display: none; }

.district-panel {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.district-panel-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(31, 41, 55, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.district-panel-mark svg { width: 26px; height: 26px; }

.district-panel-title {
  font-size: 26px;
  font-weight: 800;
  color: #1F2937;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}
.district-panel-sub {
  font-size: 13.5px;
  color: #6B6252;
  margin: 0 0 26px;
}

.district-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 620px) {
  .district-cards { grid-template-columns: 1fr; }
  .district-panel-title { font-size: 22px; }
}

.district-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #E4DCC9;
  border-radius: 14px;
  padding: 22px 20px 20px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.05);
  font-family: inherit;
  width: 100%;
}
.district-card:hover {
  transform: translateY(-3px);
  border-color: #3D6A8E;
  box-shadow: 0 8px 22px rgba(61, 106, 142, 0.16);
}
.district-card:focus-visible {
  outline: 2px solid #3D6A8E;
  outline-offset: 2px;
}
.district-card.current::after {
  content: '当前';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #5C9576;
  background: rgba(92, 149, 118, 0.12);
  border-radius: 999px;
  padding: 2px 9px;
}

.district-card-name {
  font-size: 21px;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 2px;
}
.district-card-sub {
  font-size: 12.5px;
  color: #B08A3E;
  font-weight: 600;
  margin-bottom: 12px;
}
.district-card-feats {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.district-card-feats li {
  font-size: 13px;
  color: #4B5563;
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.district-card-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #5C9576;
  font-weight: 700;
}
.district-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #3D6A8E;
}
.district-card:hover .district-card-cta { text-decoration: underline; }

.district-panel-foot {
  margin-top: 22px;
  font-size: 12px;
  color: #8A7B5C;
  line-height: 1.7;
}
.district-panel-skip {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #6B6252;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 6px;
}
.district-panel-skip:hover { color: #1F2937; }

/* 导航栏里的区域切换入口 */
.district-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3D6A8E;
  background: rgba(61, 106, 142, 0.10);
  border: 1px solid rgba(61, 106, 142, 0.22);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  font-family: inherit;
}
.district-chip:hover { background: rgba(61, 106, 142, 0.18); }
