﻿:root {
  color-scheme: light;
  --ink: #3c302d;
  --muted: #746762;
  --line: #d8cbbb;
  --paper: #f8f1e4;
  --panel: #fffaf0;
  --terracotta: #a54219;
  --brown: #4a3832;
  --soft: #efe3cf;
  --shadow: 0 20px 50px rgba(72, 49, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 70px;
  border-bottom: 1px dashed var(--line);
  background: rgba(248, 241, 228, 0.92);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-right: 1px dashed var(--line);
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  text-decoration: none;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: 0 32px;
  font-weight: 800;
}

.topnav a {
  text-decoration: none;
}

.hero,
.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  padding: clamp(62px, 10vw, 116px) 0 42px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
}

.lede {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(1.35rem, 2.35vw, 2.2rem);
  line-height: 1.22;
  overflow-wrap: normal;
  text-wrap: balance;
}

.anchor-strip {
  max-width: 650px;
  margin-top: 30px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.64);
}

.anchor-strip span,
.editor-card span,
.visit-panel span,
.info-block span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.anchor-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--brown);
}

.anchor-strip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.anchor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.anchor-actions a,
.anchor-actions button,
.map-actions a,
.modal-actions a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--brown);
  border-radius: 999px;
  padding: 10px 15px;
  background: transparent;
  color: var(--brown);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.editor-card {
  display: grid;
  border: 1px dashed var(--line);
  background: rgba(255, 250, 240, 0.72);
}

.editor-card div {
  padding: 20px;
  border-bottom: 1px dashed var(--line);
}

.editor-card div:last-child {
  border-bottom: 0;
}

.editor-card p {
  margin: 7px 0 0;
  color: var(--brown);
  font-size: 0.98rem;
}

.image-collage {
  grid-column: 1 / -1;
  position: relative;
  min-height: 270px;
  margin-top: 34px;
}

.image-collage img {
  position: absolute;
  width: min(34vw, 390px);
  height: 216px;
  border: 1px solid rgba(216, 203, 187, 0.8);
  object-fit: cover;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.collage-a {
  left: 8%;
  top: 34px;
}

.collage-b {
  left: 35%;
  top: 0;
}

.collage-c {
  right: 8%;
  top: 62px;
}

.section {
  padding: 46px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section h2 {
  margin: 0;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.06;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px dashed var(--line);
}

.category-tabs button {
  min-height: 86px;
  border: 0;
  border-right: 1px dashed var(--line);
  padding: 16px 18px;
  background: rgba(255, 250, 240, 0.58);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.category-tabs button:last-child {
  border-right: 0;
}

.category-tabs button:hover,
.category-tabs button:focus-visible {
  outline: 2px solid rgba(165, 66, 25, 0.32);
  outline-offset: -2px;
}

.category-tabs button.active {
  background: var(--brown);
  color: #fffaf0;
}

.category-tabs span {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
}

.category-tabs small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.category-tabs button.active small {
  color: rgba(255, 250, 240, 0.72);
}

.routes[hidden] {
  display: none;
}

.route-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.route-map-card {
  border: 1px dashed var(--line);
  background: rgba(255, 250, 240, 0.6);
  padding: 20px;
}

.route-map-card h3 {
  margin: 0;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.18;
}

.route-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.route-nodes li {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  text-align: center;
}

.route-nodes li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  width: 100%;
  border-top: 1px dashed var(--terracotta);
}

.route-nodes li:first-child::before {
  left: 50%;
  width: 50%;
}

.route-nodes li:last-child::before {
  width: 50%;
}

.route-nodes span {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 900;
}

.recommendations-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 16px;
}

.recommendations-heading p:last-child {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.route-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.route-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 250, 240, 0.7);
  color: var(--brown);
  font-size: 0.84rem;
  font-weight: 800;
}

.recommendation-grid {
  display: grid;
  gap: 18px;
}

.recommendation-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 0.9fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  min-height: 310px;
  border: 1px dashed var(--line);
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(72, 49, 38, 0.06);
  cursor: pointer;
}

.recommendation-card:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.card-image-frame {
  position: relative;
  margin: 16px;
  border: 1px dashed var(--brown);
  transform: rotate(-1deg);
  transition: transform 220ms ease;
}

.card-image-frame::after {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  z-index: 0;
  border: 1px dashed var(--terracotta);
  pointer-events: none;
  transition: transform 220ms ease;
}

.card-image-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  background: var(--soft);
  transition: filter 220ms ease, transform 220ms ease;
}

.recommendation-card:hover .card-image-frame {
  transform: rotate(1deg);
}

.recommendation-card:hover .card-image-frame::after {
  transform: rotate(-2deg) translate(4px, 2px);
}

.recommendation-card:hover .card-image-frame img {
  filter: contrast(1.04) saturate(1.05);
  transform: rotate(-1.5deg) scale(1.025);
}

.card-main {
  min-width: 0;
  padding: 24px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag,
.modal-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.recommendation-card h3 {
  margin: 0;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(1.8rem, 3.4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.02;
}

.recommendation-card h3 span,
.recommendation-card h3 small {
  display: block;
}

.recommendation-card h3 small {
  margin-top: 6px;
  color: var(--muted);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
}

.meta-row,
.modal-meta,
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-row span,
.modal-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 900;
}

.recommendation-card p {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1rem;
}

.tube-line {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 800;
}

.address-copy {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 14px 0 0;
  border: 1px dashed rgba(165, 66, 25, 0.42);
  border-radius: 0;
  padding: 10px 12px;
  background: rgba(239, 227, 207, 0.5);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: left;
  cursor: copy;
}

.address-copy:hover,
.address-copy:focus-visible {
  border-color: var(--terracotta);
  color: var(--brown);
  outline: 0;
}

.visit-panel {
  min-width: 0;
  margin: 16px 16px 16px 0;
  border-left: 4px solid var(--terracotta);
  background: var(--soft);
}

.visit-panel div {
  padding: 14px 16px;
  border-bottom: 1px dashed rgba(165, 66, 25, 0.24);
}

.visit-panel div:last-child {
  border-bottom: 0;
}

.visit-panel span {
  color: var(--terracotta);
}

.visit-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--brown);
  font-size: 0.9rem;
  line-height: 1.38;
}

.map-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.map-actions a,
.modal-actions a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--brown);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--brown);
  font-weight: 900;
  text-decoration: none;
}

.map-actions a:first-child,
.modal-actions a:first-child {
  background: var(--brown);
  color: #fffaf0;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.detail-drawer.open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 48, 45, 0.58);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 100%);
  height: 100%;
  overflow: auto;
  border-left: 1px dashed var(--terracotta);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 48px);
}

.drawer-close {
  width: 54px;
  height: 54px;
  border: 1px dashed var(--terracotta);
  border-radius: 50%;
  background: transparent;
  color: var(--terracotta);
  cursor: pointer;
  font-size: 1.55rem;
}

.drawer-topline {
  margin-top: 38px;
}

.drawer-panel h2 {
  margin: 18px 0 0;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: 0.95;
}

.modal-en {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 900;
}

.gallery {
  margin-top: 34px;
}

.gallery-main {
  display: block;
  width: 100%;
  height: min(48vh, 460px);
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--soft);
}

.info-block {
  margin-top: 26px;
  border: 1px dashed var(--terracotta);
  padding: 16px;
}

.info-block a,
.info-block button,
.info-block p {
  display: block;
  margin: 10px 0 0;
  color: var(--terracotta);
  font-size: 1.06rem;
  font-weight: 800;
}

.info-block button {
  width: 100%;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: copy;
}

.intro-block p {
  color: var(--ink);
  font-weight: 500;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.drawer-return {
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  margin-top: 14px;
  border: 1px dashed var(--terracotta);
  border-radius: 999px;
  background: transparent;
  color: var(--terracotta);
  font-weight: 900;
  cursor: pointer;
}

.drawer-return:hover,
.drawer-return:focus-visible {
  border-style: solid;
  outline: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 45;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--brown);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.9);
  color: var(--brown);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--brown);
  color: #fffaf0;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 180px 1fr;
  }

  .hero,
  .route-map-grid {
    grid-template-columns: 1fr;
  }

  .editor-card {
    max-width: 720px;
  }

  .recommendations-heading {
    display: block;
  }

  .recommendations-heading p:last-child {
    max-width: 720px;
    margin-top: 10px;
  }

  .recommendation-card {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  }

  .visit-panel {
    grid-column: 1 / -1;
    margin: 0 16px;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .wordmark {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px dashed var(--line);
    padding: 0 16px;
    font-size: 1.48rem;
  }

  .topnav {
    justify-content: flex-start;
    gap: 18px;
    min-height: 42px;
    padding: 0 16px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .hero,
  .section {
    width: calc(100% - 28px);
  }

  .hero {
    gap: 22px;
    padding: 28px 0 18px;
  }

  .hero-copy {
    order: 1;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12vw, 3.35rem);
    line-height: 1.02;
  }

  .lede {
    max-width: 24rem;
    margin-top: 18px;
    font-size: clamp(1.18rem, 5vw, 1.42rem);
    line-height: 1.32;
    text-wrap: auto;
  }

  .anchor-strip {
    margin-top: 18px;
    padding: 13px;
    background: rgba(255, 250, 240, 0.82);
  }

  .editor-card {
    display: none;
  }

  .anchor-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .image-collage {
    order: 2;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 8px;
    min-height: 0;
    margin-top: 2px;
    overflow: visible;
  }

  .image-collage img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 22px rgba(72, 49, 38, 0.1);
  }

  .collage-a {
    grid-row: span 2;
    aspect-ratio: 3 / 4 !important;
  }

  .collage-b {
    transform: translateY(10px);
  }

  .collage-c {
    transform: translateY(2px);
  }

  .section {
    padding: 30px 0;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section h2 {
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }

  .category-tabs {
    grid-template-columns: 1fr;
    border-style: solid;
    background: var(--panel);
  }

  .category-tabs button {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px dashed var(--line);
    padding: 13px 14px;
  }

  .category-tabs span {
    font-size: 1rem;
  }

  .category-tabs small {
    margin-top: 2px;
    font-size: 0.8rem;
  }

  .route-map-card {
    padding: 15px;
  }

  .route-map-card h3 {
    font-size: 1.08rem;
  }

  .route-nodes {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .route-nodes li {
    min-height: auto;
  }

  .route-nodes li::before {
    display: none;
  }

  .route-nodes span {
    width: 100%;
    min-height: 38px;
    border-radius: 0;
  }

  .recommendations-heading {
    margin-bottom: 12px;
  }

  .recommendations-heading p:last-child {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .route-chips {
    gap: 6px;
  }

  .route-chips span {
    border-radius: 0;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .recommendation-card {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    border-style: solid;
    border-color: rgba(165, 66, 25, 0.28);
    background: #fffaf0;
    box-shadow: 0 16px 34px rgba(72, 49, 38, 0.1);
    overflow: hidden;
  }

  .card-image-frame {
    min-height: 0;
    margin: 0;
    border: 0;
    transform: none;
  }

  .card-image-frame::after {
    display: none;
  }

  .card-image-frame img {
    min-height: 0;
    aspect-ratio: 16 / 10.5;
    height: auto;
  }

  .recommendation-card:hover .card-image-frame,
  .recommendation-card:hover .card-image-frame img {
    transform: none;
  }

  .card-main {
    padding: 16px 14px 12px;
  }

  .tag-row {
    margin-bottom: 10px;
  }

  .recommendation-card h3 {
    font-size: clamp(1.72rem, 9vw, 2.35rem);
    line-height: 1.06;
  }

  .recommendation-card h3 small {
    font-size: 0.86rem;
  }

  .meta-row {
    gap: 6px;
    margin-top: 12px;
  }

  .meta-row span {
    font-size: 0.75rem;
  }

  .recommendation-card p {
    margin-top: 13px;
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .address-copy {
    margin-top: 12px;
    font-size: 0.82rem;
  }

  .visit-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 12px 12px;
    border-left: 0;
    border-top: 4px solid var(--terracotta);
  }

  .visit-panel div {
    min-width: 0;
    padding: 12px 13px;
    border-right: 1px dashed rgba(165, 66, 25, 0.24);
  }

  .visit-panel strong {
    font-size: 0.84rem;
  }

  .map-actions,
  .modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
  }

  .drawer-return {
    min-height: 46px;
    margin-top: 10px;
  }

  .back-to-top {
    right: 14px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .drawer-panel {
    width: 100%;
    padding: 16px 14px 22px;
  }

  .drawer-close {
    width: 48px;
    height: 48px;
  }

  .drawer-topline {
    margin-top: 24px;
  }

  .drawer-panel h2 {
    font-size: clamp(2.45rem, 13vw, 3.75rem);
    line-height: 1;
  }

  .gallery {
    margin-top: 24px;
  }

  .gallery-main {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .info-block {
    margin-top: 16px;
    padding: 13px;
  }

  .info-block a,
  .info-block button,
  .info-block p {
    font-size: 0.96rem;
    line-height: 1.52;
  }

  .modal-meta,
  .modal-tags {
    gap: 6px;
  }
}

@media (min-width: 390px) and (max-width: 700px) {
  .category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-tabs button {
    min-height: 78px;
    border-right: 1px dashed var(--line);
    border-bottom: 0;
  }

  .category-tabs button:last-child {
    border-right: 0;
  }
}

@media (max-width: 389px) {
  .visit-panel,
  .map-actions,
  .modal-actions {
    grid-template-columns: 1fr;
  }
}
