:root {
  --bg: #edf4ef;
  --paper: rgba(251, 255, 251, 0.88);
  --paper-strong: rgba(255, 255, 255, 0.96);
  --ink: #173730;
  --ink-soft: #5b716a;
  --line: rgba(30, 108, 86, 0.12);
  --line-strong: rgba(30, 108, 86, 0.2);
  --accent: #1e6c56;
  --accent-2: #268d79;
  --shadow: 0 18px 42px rgba(24, 73, 60, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, rgba(30, 108, 86, 0.05), transparent 240px),
    linear-gradient(180deg, #f9fcf9 0%, #eef4ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(30, 108, 86, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 108, 86, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(1060px, calc(100% - 32px));
  margin: clamp(18px, 3vw, 28px) auto 40px;
}

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

.brand__eyebrow,
.eyebrow,
.section__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand__title,
.hero__title,
.section__title {
  font-family: "STSong", "Noto Serif SC", "Songti SC", serif;
}

.brand__title {
  margin-top: 2px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.back:hover {
  text-decoration: none;
  border-color: var(--line-strong);
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(250, 253, 250, 0.88)), var(--paper);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px 32px;
}

.hero__title {
  margin: 8px 0 0;
  max-width: none;
  width: 100%;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
  line-break: strict;
  text-wrap: pretty;
}

.hero__lead {
  margin: 14px 0 0;
  max-width: none;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
}

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

.section {
  padding: 20px;
}

.section__title {
  margin: 6px 0 0;
  font-size: 25px;
  line-height: 1.32;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
  text-wrap: pretty;
}

.section__body {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.82;
}

.section__body p {
  margin: 0 0 10px;
}

.section__body p:last-child {
  margin-bottom: 0;
}

.list {
  margin: 0;
  padding-left: 20px;
}

.list li + li {
  margin-top: 8px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metric {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.metric__label {
  color: var(--ink-soft);
  font-size: 13px;
}

.metric__value {
  margin-top: 10px;
  font-family: "STSong", "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  line-height: 1.2;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 18px;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.68;
}

.table th {
  color: var(--ink);
  background: rgba(30, 108, 86, 0.06);
}

.table tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(38, 141, 121, 0.08), rgba(255, 255, 255, 0.92));
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.82;
}

.typeGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.typeCard {
  padding: 20px;
}

.typeCard__top {
  display: block;
}

.typeCard__title {
  margin: 10px 0 0;
  font-family: "STSong", "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
  line-height: 1.22;
  text-wrap: pretty;
}

.typeCard__meta {
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.7;
}

.typeCard__body {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.82;
}

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

.typeChip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 12px;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer__sep {
  opacity: 0.5;
}

.suiyuanEssayGrid {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.suiyuanWeatherBar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 168px));
  justify-content: start;
  gap: 10px;
  margin-top: 14px;
}

.suiyuanMapLayout {
  margin-top: 14px;
  align-items: start;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.92fr);
}

.suiyuanWeather__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.suiyuanInlineCallout {
  margin-top: 16px;
}

.suiyuanPlaceList,
.suiyuanTimeline {
  display: grid;
  gap: 12px;
}

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

.suiyuanPlaceLink {
  font: inherit;
  cursor: pointer;
}

.suiyuanPlaceLink strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}

.suiyuanPlaceLink span {
  color: var(--accent);
  font-size: 13px;
}

.suiyuanPlaceLink.is-active {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(30, 108, 86, 0.1), rgba(255, 255, 255, 0.92));
  box-shadow: 0 10px 24px rgba(24, 73, 60, 0.08);
}

.suiyuanMapSection {
  margin-top: 18px;
  padding-bottom: 24px;
  overflow: hidden;
}

.suiyuanMapLayout > * {
  min-width: 0;
}

.suiyuanMapColumn {
  min-width: 0;
}

.suiyuanMap {
  width: 100%;
  height: 560px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.suiyuanSubcard {
  height: auto;
  min-width: 0;
}

.suiyuanLandmarksCard {
  padding: 18px 18px 16px;
}

.suiyuanPlaceLink {
  width: 100%;
  text-align: left;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 14px 16px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.suiyuanPlaceLink:last-child {
  padding-bottom: 14px;
}

.suiyuanPlaceLink:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.suiyuanTimelineItem {
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.suiyuanTimelineItem:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.suiyuanInfoWindow strong {
  display: block;
  margin-bottom: 4px;
}

.suiyuanInfoWindow p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.metric__value {
  overflow-wrap: anywhere;
}

.suiyuanWeatherBar .metric {
  padding: 12px 14px;
  border-radius: 16px;
}

.suiyuanWeatherBar .metric__value {
  margin-top: 6px;
  font-size: 18px;
}

.suiyuanMapHint {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.suiyuanDetailCard {
  margin-top: 16px;
  padding: 18px 22px 20px;
}

.suiyuanDetailCard .section__title {
  font-size: 28px;
}

.suiyuanDetailCard .section__body {
  margin-top: 10px;
  max-width: 100%;
}

.suiyuanDetailCard .typeChipWrap {
  margin-top: 12px;
}

#suiyuanTimelineSection {
  margin-top: 20px;
}

.suiyuanNextEntry {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 18px;
}

.suiyuanNextButton {
  font: inherit;
  cursor: pointer;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.suiyuanNextButton:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.suiyuanNextPanel {
  width: min(560px, 100%);
  padding: 18px 20px;
}

.suiyuanNextLabel {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.suiyuanNextForm {
  display: flex;
  gap: 10px;
  align-items: center;
}

.suiyuanNextInput {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.suiyuanNextInput:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(30, 108, 86, 0.08);
}

.suiyuanNextSubmit {
  font: inherit;
  cursor: pointer;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: #fff;
}

.suiyuanNextHint {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .grid,
  .typeGrid {
    grid-template-columns: 1fr;
  }

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

  .suiyuanEssayGrid {
    grid-template-columns: 1fr;
  }

  .suiyuanWeatherBar {
    grid-template-columns: repeat(2, minmax(0, 150px));
  }

  .suiyuanMapLayout {
    grid-template-columns: 1fr;
  }

  .suiyuanMap {
    height: 440px;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 20px, 1120px);
    margin-top: 20px;
  }

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

  .hero {
    padding: 24px 20px;
  }

  .section,
  .typeCard {
    padding: 18px;
  }

  .hero__title {
    font-size: 34px;
    text-align: left;
  }

  .hero__lead {
    font-size: 16px;
  }

  .section__title {
    text-align: left;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .suiyuanWeather__grid {
    grid-template-columns: 1fr;
  }

  .suiyuanWeatherBar {
    grid-template-columns: 1fr;
  }

  .suiyuanPlaceList {
    grid-template-columns: 1fr;
  }

  .suiyuanLandmarksCard,
  .suiyuanDetailCard {
    padding: 18px;
  }

  .suiyuanNextPanel {
    width: 100%;
  }

  .suiyuanNextForm {
    flex-direction: column;
    align-items: stretch;
  }

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

  .back {
    width: 100%;
    justify-content: center;
  }

  .suiyuanMap {
    height: 340px;
  }

  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th,
  .table td {
    padding: 12px 12px;
  }
}
