/* Zainadiao Lightweight SSR Homepage Styles */
.landing {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px calc(80px + env(safe-area-inset-bottom, 0px));
}

.landing a:focus-visible,
.landing input:focus-visible,
.landing button:focus-visible,
.landing summary:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

/* --- Section 1: Deep Water Hero Section --- */
.landing-intro {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 36px 24px 44px;
  background: linear-gradient(180deg, #1e3a5f 0%, #152d47 50%, #0e2033 100%);
  color: #ffffff;
  box-shadow: 0 12px 36px -8px rgba(14, 32, 51, 0.35);
}

.landing-intro-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.12;
  z-index: 0;
}

.landing-texture-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
}

/* 呼吸地域感知 Bar */
.landing-location-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: #bae6fd;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.location-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: location-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes location-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.location-switch-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
  transition: color 0.15s ease;
}

.location-switch-link:hover {
  color: #7dd3fc;
}

.landing-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

#landing-title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.landing-lead {
  font-size: clamp(15px, 2vw, 17px);
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 0 24px;
}

.landing-search-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0 0 8px;
}

.landing-search {
  display: flex;
  align-items: center;
  max-width: 680px;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.landing-search:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

.landing-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  color: #64748b;
  pointer-events: none;
}

.landing-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border: 0;
  outline: none;
  font-size: 16px;
  color: #0f172a;
  background: transparent;
}

.landing-search input::placeholder {
  color: #94a3b8;
}

.landing-search button {
  min-height: 48px;
  padding: 0 22px;
  background: #15803d;
  color: #ffffff;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.landing-search button:hover {
  background: #166534;
}

/* 热门探索与目标鱼种微药丸 */
.landing-quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
}

.quick-tags-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.quick-tags-sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 2px;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.quick-pill:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #f8fafc;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.action-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- Section Layout --- */
.landing-section {
  margin-top: 52px;
}

#all-cities {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.landing .section-header {
  text-align: left;
  margin-bottom: 20px;
}

.landing .section-title {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.3;
}

.landing .section-desc {
  font-size: 14px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.section-header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.section-header-row .section-title {
  margin: 0;
}

.featured-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
}

/* --- Section 2: Bento Grid --- */
.landing-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

.bento-card-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 26px 30px;
  background: linear-gradient(135deg, #ffffff 60%, #f0f9ff 100%);
}

.bento-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.bento-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.bento-hero-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* 核心能力亮点群 */
.bento-map-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.map-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-cyan { background: #0284c7; box-shadow: 0 0 6px rgba(2, 132, 199, 0.4); }
.dot-green { background: #16a34a; box-shadow: 0 0 6px rgba(22, 163, 74, 0.4); }
.dot-amber { background: #d97706; box-shadow: 0 0 6px rgba(217, 119, 6, 0.4); }

/* 热门视野快捷直达标签 */
.bento-map-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.shortcuts-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.shortcut-tag {
  padding: 2px 8px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #bae6fd;
}

.bento-hero-right {
  position: relative;
  width: 100%;
}

.bento-map-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
  border: 1px solid #cbd5e1;
}

.bento-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bento-card-hero:hover .bento-map-img {
  transform: scale(1.04);
}

/* 顶部 HUD 状态栏 */
.bento-map-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.map-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hud-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.map-hud-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-high { background: #22c55e; }
.legend-mid { background: #0ea5e9; }
.legend-low { background: #f59e0b; }

/* 底部水情决策微卡 */
.bento-map-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  pointer-events: none;
}

.bento-map-hud-card {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.hud-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.hud-pulse-ring {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.hud-card-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.hud-card-score {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  margin-left: auto;
}

.hud-card-water {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.hud-card-water strong {
  font-weight: 700;
  color: #ffffff;
}

.hud-card-species {
  font-size: 11px;
  color: #cbd5e1;
}

.bento-card-map:hover { border-color: #93c5fd; }
.bento-card-discover:hover { border-color: #86efac; }
.bento-card-rules:hover { border-color: #fde68a; }
.bento-card-fishid:hover { border-color: #99f6e4; }

.bento-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.bento-icon-blue { background: #e0f2fe; color: #0284c7; }
.bento-icon-emerald { background: #dcfce7; color: #16a34a; }
.bento-icon-amber { background: #fef3c7; color: #d97706; }
.bento-icon-teal { background: #ccfbf1; color: #0d9488; }

.bento-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #475569;
}

.bento-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.35;
}

.bento-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
}

.bento-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
  margin-top: auto;
  transition: color 0.15s ease, transform 0.15s ease;
}

.bento-card:hover .bento-action {
  color: #0284c7;
  transform: translateX(2px);
}

/* --- Section 3: Featured Intelligence Cards --- */
.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.landing-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(30, 58, 95, 0.1), 0 4px 6px -2px rgba(30, 58, 95, 0.04);
  border-color: #93c5fd;
}

.landing-card:hover .landing-card-title a {
  color: #1e3a5f;
}

.landing-card:hover .landing-card-btn {
  color: #0284c7;
}

.landing-card-top {
  margin-bottom: 12px;
}

.landing-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.landing-card-location {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  line-height: 1.4;
  flex-shrink: 0;
  white-space: nowrap;
}

.waterway-type-icon {
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
}

.landing-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.landing-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-card-title a:hover {
  color: #1e3a5f;
}

.landing-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.landing-card-body {
  margin-bottom: 16px;
}

.landing-card-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 10px;
}

.metric-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 12px;
  color: #64748b;
}

.metric-val {
  font-size: 13px;
  font-weight: 500;
}

.metric-val.is-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #166534;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 6px;
}

/* 咬钩档位微型圆环能量表 (Mini Conic Arc Gauge) */
.mini-bite-gauge {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: conic-gradient(
    from 0deg,
    var(--gauge-color, #166534) var(--bite-pct, 0%),
    rgba(148, 163, 184, 0.28) 0
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #fff calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #fff calc(100% - 2px));
}

.mini-bite-gauge::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--gauge-inner-bg, #dcfce7);
}

@supports (mask: radial-gradient(farthest-side, transparent 1px, #fff 2px)) or (-webkit-mask: radial-gradient(farthest-side, transparent 1px, #fff 2px)) {
  .mini-bite-gauge::after {
    display: none;
  }
}

.landing .metric-val.metric-high { color: #166534; background: #dcfce7; --gauge-color: #16a34a; --gauge-inner-bg: #dcfce7; }
.landing .metric-val.metric-mid { color: #075985; background: #e0f2fe; --gauge-color: #0284c7; --gauge-inner-bg: #e0f2fe; }
.landing .metric-val.metric-low { color: #92400e; background: #fef3c7; --gauge-color: #d97706; --gauge-inner-bg: #fef3c7; }
.landing .metric-val.metric-poor { color: #991b1b; background: #fee2e2; --gauge-color: #dc2626; --gauge-inner-bg: #fee2e2; }

.metric-val.is-muted {
  color: #475569;
}

/* 24h 走势微折线 (Sparkline) */
.metric-sparkline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.metric-sparkline svg {
  display: block;
}

.sparkline-label {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1;
}

/* 优势鱼种与时段情报 */
.landing-card-intel {
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.intel-species {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #475569;
  flex-wrap: wrap;
}

.intel-label {
  color: #64748b;
  font-size: 11px;
}

.intel-tags {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}

.intel-tag {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 600;
  color: #1e3a5f;
  line-height: 1.3;
}

.intel-window {
  display: flex;
}

.intel-window-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
  line-height: 1.3;
}

.landing-card-time {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.landing-card-stale {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  margin-right: 6px;
}

.landing .landing-card.is-stale .metric-val.is-active {
  color: #475569;
  background: #f1f5f9;
  --gauge-color: #94a3b8;
  --gauge-inner-bg: #f1f5f9;
}

.landing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.badge-stale {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-source {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
}

.landing-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 0;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
  box-sizing: border-box;
}

.landing-card-btn:hover {
  color: #0284c7;
  text-decoration: underline;
}

.landing-more-wrap {
  margin-top: 20px;
  text-align: center;
}

.landing-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.landing-more:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.landing-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  color: #475569;
  font-size: 14px;
  grid-column: 1 / -1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.landing-empty-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e3a5f;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.landing-empty-svg {
  display: block;
}

.landing-empty-text {
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}

.landing-empty-link {
  color: #1e3a5f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-empty-link:hover {
  color: #0284c7;
}

/* --- Section 4: Basin Strip --- */
.landing-basin-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  /* 桌面端呈现精致细滚动条，便于使用鼠标按住拖拽或直观感知横向滑动 (Issue #114) */
  scrollbar-width: thin;
  scrollbar-color: var(--fb-gray-300, #cbd5e1) transparent;
}

.landing-basin-scroll::-webkit-scrollbar {
  height: 6px;
}

.landing-basin-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.landing-basin-scroll::-webkit-scrollbar-thumb {
  background: var(--fb-gray-300, #cbd5e1);
  border-radius: 9999px;
}

.landing-basin-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--fb-gray-400, #94a3b8);
}

@media (hover: none) and (pointer: coarse) {
  /* 移动触控端恢复隐藏滚动条，保持原生触控平滑滑动 */
  .landing-basin-scroll {
    scrollbar-width: none;
  }
  .landing-basin-scroll::-webkit-scrollbar {
    display: none;
  }
}

.basin-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  min-width: 140px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.15s ease;
}

.basin-chip:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.basin-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.basin-sub {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

/* --- Section 5: Rules & Knowledge Banner --- */
.rules-card {
  position: relative;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.04);
}

.rules-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}

.rules-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.06);
}

.rules-emblem-svg {
  display: block;
}

.rules-content {
  flex: 1;
}

.rules-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.rules-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.rules-title {
  font-size: 20px;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 8px;
  line-height: 1.3;
}

.rules-desc {
  font-size: 14px;
  color: #166534;
  margin: 0;
  line-height: 1.6;
}

.rules-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-rules-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  background: #166534;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.2);
  transition: all 0.15s ease;
}

.btn-rules-primary:hover {
  background: #14532d;
  transform: translateY(-1px);
}

.btn-rules-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  background: #ffffff;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-rules-secondary:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateY(-1px);
}

/* --- Section 6: Cities Directory Grid --- */
.landing-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  align-items: start;
}

.city-group {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.city-group[open] {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.city-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background 0.15s ease;
}

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

.city-summary:hover {
  background: #f8fafc;
}

.city-group-direct {
  display: flex;
}

.city-summary-direct {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 100%;
  color: #1e293b;
  box-sizing: border-box;
}

.city-summary-direct:hover {
  background: #f8fafc;
}

.city-summary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border: none;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  margin-left: 10px;
  flex-shrink: 0;
}

.city-group[open] .city-summary::after {
  transform: rotate(45deg);
}

.city-group[open] .city-summary {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.city-summary.city-summary-direct::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border: none;
  border-top: 2px solid #64748b;
  border-right: 2px solid #64748b;
  transform: rotate(45deg);
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.city-summary.city-summary-direct:hover::after {
  border-color: #166534;
  transform: translateX(2px) rotate(45deg);
}

.city-summary-meta {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.summary-count {
  font-size: 12px;
  font-weight: 400;
  color: #475569;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  gap: 6px;
  background: #ffffff;
}

.city-item {
  margin: 0;
}

.city-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  min-height: 38px;
  box-sizing: border-box;
  transition: all 0.12s ease;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-link:hover {
  background: #dcfce7;
  color: #15803d;
}

/* --- Mobile Navigation & Responsive Optimizations --- */
@media (max-width: 768px) {
  .landing {
    padding: 16px 16px calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .landing-eyebrow {
    display: none;
  }

  .landing-intro {
    padding: 20px 16px 28px;
    border-radius: 16px;
  }

  .landing-lead {
    margin-bottom: 16px;
  }

  .landing-quick-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .landing-quick-tags::-webkit-scrollbar {
    display: none;
  }

  .landing-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    margin-top: 16px;
    scrollbar-width: none;
  }

  .landing-actions::-webkit-scrollbar {
    display: none;
  }

  .action-chip {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 38px;
    padding: 6px 14px;
  }

  .landing-bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bento-card-hero {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
  }

  .bento-hero-title {
    font-size: 18px;
  }

  .bento-hero-desc {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .bento-map-highlights {
    gap: 5px;
    margin-bottom: 12px;
  }

  .map-highlight-pill {
    font-size: 12px;
  }

  .bento-map-shortcuts {
    margin-bottom: 14px;
  }

  .landing-cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .city-summary {
    flex-wrap: nowrap;
    padding: 10px 10px;
    gap: 4px;
  }

  .summary-text {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .city-summary-meta {
    margin-left: auto;
    flex-shrink: 0;
  }

  .summary-count {
    font-size: 11px;
    white-space: nowrap;
  }

  .city-link {
    padding: 6px 10px;
  }

  .rules-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
  }

  .rules-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .rules-content {
    min-width: 0;
  }

  .rules-emblem {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .rules-emblem-svg {
    width: 42px;
    height: 42px;
  }

  .rules-buttons {
    flex-direction: column;
  }

  .btn-rules-primary,
  .btn-rules-secondary {
    justify-content: center;
  }
}

/* --- Desktop hero balance --- */
@media (min-width: 769px) {
  .landing-intro {
    padding: 48px 36px 52px;
  }

  .landing-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
  }

  .landing-location-bar {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-lead {
    max-width: none;
  }

  .landing-search-form {
    max-width: 760px;
    margin: 0 auto;
  }

  .landing-search {
    max-width: none;
  }

  .landing-quick-tags {
    justify-content: center;
  }

  .landing-actions {
    justify-content: center;
  }
}
