:root {
  --bg: #f7f1e8;
  --panel: rgba(255, 250, 244, 0.92);
  --panel-strong: #fffaf3;
  --text: #2e2a26;
  --muted: #6a6158;
  --accent: #d15a2f;
  --accent-deep: #8f3819;
  --line: rgba(46, 42, 38, 0.12);
  --shadow: 0 18px 60px rgba(91, 55, 33, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(209, 90, 47, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(132, 181, 145, 0.18), transparent 24%),
    linear-gradient(180deg, #f4ecdf 0%, var(--bg) 42%, #f8f4ed 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 48px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.hero-content,
.page-header,
.section,
.filter-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-content {
  padding: 56px;
}

.page-shell {
  padding: 24px 0 48px;
}

.page-header {
  padding: 40px;
  margin-bottom: 24px;
}

.section,
.filter-bar {
  padding: 28px;
  margin-bottom: 24px;
}

.eyebrow,
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 0.98;
  margin-bottom: 20px;
}

.hero-content h1 {
  max-width: 11ch;
}

.page-header h1 {
  max-width: none;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 10px;
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  background: var(--accent);
  color: #fff8f1;
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--line);
}

.grid-two,
.grid-three {
  display: grid;
  gap: 20px;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.accent-panel {
  background: linear-gradient(135deg, rgba(209, 90, 47, 0.08), rgba(132, 181, 145, 0.12));
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.location-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
}

.location-panel > div:first-child {
  flex: 1 1 280px;
  min-width: 0;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 520px;
}

.text-input {
  flex: 1 1 320px;
  min-width: 220px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 0 16px;
  font: inherit;
  color: var(--text);
}

.location-label {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--accent-deep);
  font-weight: 700;
}

.location-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.filter-bar select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fffdf8;
}

.activity-list {
  display: grid;
  gap: 18px;
}

.activity-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(209, 90, 47, 0.1);
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.activity-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.activity-source-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.source-name {
  color: var(--muted);
  font-size: 0.95rem;
}

.activity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.link-chip.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f1;
}

.distance-text {
  font-weight: 700;
  color: var(--accent-deep);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(46, 42, 38, 0.06);
}

@media (max-width: 800px) {
  .grid-two,
  .grid-three,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .location-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .location-actions {
    justify-content: stretch;
  }

  .location-actions,
  .text-input,
  .location-actions .button {
    width: 100%;
  }

  .hero-content,
  .page-header,
  .section,
  .filter-bar,
  .activity-card {
    padding: 22px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
