:root {
  --sw-sand: #C4782A;
  --sw-sand-dark: #8A5218;
  --sw-ink: #1F1A14;
  --sw-muted: #7A6F63;
  --sw-line: #E4D7C6;
  --sw-bg: #F6F0E7;
  --sw-white: #FFFCF7;
  --sw-char: #2A2621;
  --sw-wrap: 1120px;
  --sw-sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sw-display: "Georgia", "Songti SC", "SimSun", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sw-sans);
  color: var(--sw-ink);
  background:
    linear-gradient(180deg, #EFE5D6 0%, var(--sw-bg) 180px, #F4EEE5 100%);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
a:hover { color: var(--sw-sand-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--sw-display);
}

.sw-wrap {
  width: min(100% - 32px, var(--sw-wrap));
  margin-inline: auto;
}

/* Header */
.sw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sw-line);
}

.sw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.sw-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(56vw, 320px);
}

.sw-logo img { height: 42px; width: auto; }

.sw-logo-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--sw-char);
  border: 2px solid var(--sw-sand);
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.sw-logo-pin {
  position: absolute;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sw-sand);
}

.sw-logo-cn {
  color: #F6E7D0;
  font-size: 16px;
  font-weight: 800;
  margin-top: 6px;
  font-family: var(--sw-display);
}

.sw-logo-mark-sm {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.sw-logo-text { min-width: 0; }
.sw-logo-text strong {
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sw-logo-text em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--sw-muted);
  margin-top: 2px;
  font-family: var(--sw-sans);
}

.sw-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sw-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sw-nav > ul > li { position: relative; }

.sw-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.sw-nav > ul > li.is-active > a,
.sw-nav > ul > li > a:hover {
  color: var(--sw-sand-dark);
  border-bottom-color: var(--sw-sand);
}

.sw-subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: var(--sw-white);
  border: 1px solid var(--sw-line);
  box-shadow: 0 12px 28px rgba(31, 26, 20, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
  z-index: 20;
}

.sw-nav > ul > li:hover > .sw-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sw-subnav a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
}

.sw-subnav a:hover,
.sw-subnav .is-active a {
  background: #F3E8D8;
  color: var(--sw-sand-dark);
}

.sw-search {
  display: flex;
  border: 1px solid var(--sw-line);
  background: var(--sw-white);
}

.sw-search input {
  width: 130px;
  border: 0;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  background: transparent;
  outline: none;
}

.sw-search button {
  border: 0;
  border-left: 1px solid var(--sw-line);
  background: var(--sw-sand);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.sw-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sw-line);
  background: var(--sw-white);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sw-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sw-ink);
  transition: .2s;
}

.sw-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 20, 0.4);
  z-index: 90;
}

body.nav-open .sw-nav-mask { display: block; }

/* Map hero */
.sw-map {
  padding: 52px 0 44px;
  background:
    radial-gradient(circle at 85% 20%, rgba(196, 120, 42, 0.2), transparent 40%),
    linear-gradient(135deg, #2A2621 0%, #3A322A 55%, #2F2922 100%);
  color: #F3E8D8;
  position: relative;
}

.sw-map::after {
  content: "";
  position: absolute;
  inset: auto 8% 18px 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sw-sand), transparent);
  opacity: 0.7;
}

.sw-map-inner { max-width: 720px; position: relative; z-index: 1; }

.sw-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--sw-sand);
  font-weight: 700;
  font-family: var(--sw-sans);
}

.sw-map h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-bottom: 14px;
}

.sw-map-desc {
  margin: 0 0 24px;
  max-width: 34em;
  color: #C9BAA8;
  font-size: 16px;
  font-family: var(--sw-sans);
}

.sw-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  font-family: var(--sw-sans);
}

.sw-btn-primary {
  background: var(--sw-sand);
  color: #1F1A14;
}

.sw-btn-primary:hover {
  background: #D9923A;
  color: #1F1A14;
}

.sw-btn-ghost {
  border-color: rgba(243, 232, 216, 0.4);
  color: #F3E8D8;
  background: transparent;
}

.sw-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Route stops */
.sw-route {
  padding: 28px 0 8px;
  margin-top: -8px;
}

.sw-route .sw-wrap { position: relative; }

.sw-route-line {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sw-sand) 0 12px, transparent 12px 20px);
  opacity: 0.55;
}

.sw-stops {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.sw-stops a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 6px 14px;
  background: var(--sw-white);
  border: 1px solid var(--sw-line);
}

.sw-stops a:hover {
  border-color: var(--sw-sand);
  transform: translateY(-3px);
}

.sw-stops em {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sw-char);
  color: var(--sw-sand);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--sw-sans);
  border: 2px solid var(--sw-sand);
}

.sw-stops strong { font-size: 14px; }
.sw-stops span { font-size: 12px; color: var(--sw-muted); font-family: var(--sw-sans); }

.sw-home-body { padding: 24px 0 56px; }

.sw-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sw-section-hd h2 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sw-section-hd h2::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--sw-sand);
  transform: rotate(45deg);
}

.sw-section-hd a {
  font-size: 13px;
  color: var(--sw-sand-dark);
  font-family: var(--sw-sans);
}

.sw-block { margin-bottom: 36px; }

/* Journal entries */
.sw-journal {
  background: var(--sw-white);
  border: 1px solid var(--sw-line);
}

.sw-entry {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sw-line);
  align-items: start;
}

.sw-entry:last-child { border-bottom: 0; }
.sw-entry:hover { background: #FBF5EC; }

.sw-entry-date {
  text-align: center;
  padding: 8px 6px;
  background: #F3E8D8;
  border-left: 3px solid var(--sw-sand);
}

.sw-entry-date strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--sw-sand-dark);
  font-family: var(--sw-display);
}

.sw-entry-date span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--sw-muted);
  font-family: var(--sw-sans);
  letter-spacing: 0.04em;
}

.sw-entry-body h3 { font-size: 18px; margin-bottom: 6px; }
.sw-entry-body p { margin: 0; font-size: 14px; color: var(--sw-muted); font-family: var(--sw-sans); }

.sw-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.sw-diary {
  background: var(--sw-white);
  border: 1px solid var(--sw-line);
}

.sw-diary li + li { border-top: 1px dashed var(--sw-line); }

.sw-diary a {
  display: block;
  padding: 16px 18px;
}

.sw-mile {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--sw-sand-dark);
  background: #F3E8D8;
  padding: 2px 8px;
  margin-bottom: 8px;
  font-family: var(--sw-sans);
}

.sw-diary h3 { font-size: 16px; margin-bottom: 6px; }
.sw-diary p { margin: 0 0 8px; font-size: 13px; color: var(--sw-muted); font-family: var(--sw-sans); }
.sw-diary time { font-size: 12px; color: var(--sw-muted); font-family: var(--sw-sans); }

.sw-block-dark {
  background: var(--sw-char);
  color: #F3E8D8;
  padding: 20px 18px;
  border: 1px solid #3A322A;
}

.sw-block-dark .sw-section-hd h2::before { background: var(--sw-sand); }
.sw-block-dark .sw-section-hd a { color: #E0B06A; }

.sw-notes li + li { border-top: 1px solid rgba(196, 120, 42, 0.25); }

.sw-notes a {
  display: block;
  padding: 14px 0;
  color: #F3E8D8;
}

.sw-notes h3 { font-size: 16px; margin-bottom: 6px; }
.sw-notes p { margin: 0 0 8px; font-size: 13px; color: #B8AA98; font-family: var(--sw-sans); }
.sw-notes time { font-size: 12px; color: var(--sw-sand); font-family: var(--sw-sans); }
.sw-notes a:hover h3 { color: #E0B06A; }

/* Interior */
.sw-crumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--sw-muted);
  background: #EFE4D4;
  border-bottom: 1px solid var(--sw-line);
  font-family: var(--sw-sans);
}

.sw-crumb span { margin: 0 6px; opacity: 0.5; }

.sw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 32px 0 56px;
  align-items: start;
}

.sw-panel {
  background: var(--sw-white);
  border: 1px solid var(--sw-line);
  padding: 20px;
  margin-bottom: 18px;
}

.sw-list-panel { padding: 26px; }

.sw-page-title {
  font-size: 26px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--sw-sand);
}

.sw-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--sw-muted);
  font-family: var(--sw-sans);
}

.sw-article-list li + li { border-top: 1px solid var(--sw-line); }

.sw-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  align-items: start;
}

.sw-article-list a:not(:has(img)) { grid-template-columns: 1fr; }
.sw-article-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #F3E8D8;
}
.sw-article-list h2 { font-size: 18px; margin-bottom: 8px; }
.sw-article-list p { margin: 0 0 10px; font-size: 14px; color: var(--sw-muted); font-family: var(--sw-sans); }

.sw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--sw-muted);
  font-family: var(--sw-sans);
}

.sw-meta.center { justify-content: center; margin: 12px 0 24px; }

.sw-detail { padding: 32px 28px; }
.sw-detail > h1 {
  font-size: clamp(24px, 3vw, 34px);
  max-width: 18em;
}

.sw-richtext {
  font-size: 16px;
  line-height: 1.9;
  color: #3A322A;
  font-family: var(--sw-sans);
}
.sw-richtext p { margin: 0 0 1.1em; }
.sw-richtext img { margin: 1em auto; }
.sw-richtext a { color: var(--sw-sand-dark); text-decoration: underline; text-underline-offset: 3px; }

.sw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.sw-tags a {
  padding: 4px 10px;
  border: 1px solid var(--sw-line);
  font-size: 12px;
  background: #F3E8D8;
  font-family: var(--sw-sans);
}

.sw-tags a:hover {
  border-color: var(--sw-sand);
  color: var(--sw-sand-dark);
}

.sw-pagerow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--sw-line);
  font-size: 14px;
  font-family: var(--sw-sans);
}

.sw-pagination { margin-top: 24px; }

.sw-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sw-page a,
.sw-page .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--sw-line);
  font-size: 13px;
  background: var(--sw-white);
  font-family: var(--sw-sans);
}

.sw-page .active a,
.sw-page a:hover {
  background: var(--sw-sand);
  border-color: var(--sw-sand);
  color: #fff;
}

.sw-side .sw-panel { margin-bottom: 16px; }
.sw-panel-hd {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sw-line);
}
.sw-panel-hd h3 { font-size: 15px; }

.sw-rank { counter-reset: sw-rank; }
.sw-rank li {
  counter-increment: sw-rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--sw-line);
  font-size: 13px;
  font-family: var(--sw-sans);
}
.sw-rank li::before {
  content: counter(sw-rank, decimal-leading-zero);
  color: var(--sw-sand);
  font-weight: 700;
  flex-shrink: 0;
}

.sw-side-list li + li { border-top: 1px solid var(--sw-line); }
.sw-side-list a { display: block; padding: 10px 0; font-size: 13px; font-family: var(--sw-sans); }
.sw-ad { font-size: 14px; color: var(--sw-muted); font-family: var(--sw-sans); }

/* Footer */
.sw-footer {
  background: #1F1A14;
  color: #D4C7B6;
  padding: 44px 0 24px;
}

.sw-footer a { color: #F3E8D8; }
.sw-footer a:hover { color: #E0B06A; }

.sw-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.sw-foot-brand h3 {
  font-size: 18px;
  color: #E0B06A;
  margin: 0 0 8px;
}

.sw-footer h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E0B06A;
  margin-bottom: 12px;
  font-family: var(--sw-sans);
}

.sw-footer p { margin: 0 0 8px; font-size: 14px; font-family: var(--sw-sans); }
.sw-foot-links { display: flex; flex-direction: column; gap: 8px; }
.sw-foot-links a { font-size: 14px; font-family: var(--sw-sans); }

.sw-friendlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(224, 176, 106, 0.2);
  font-size: 13px;
  font-family: var(--sw-sans);
}

.sw-friendlinks span { color: #E0B06A; }

.sw-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(224, 176, 106, 0.2);
  font-size: 12px;
  color: #9A8D7C;
  font-family: var(--sw-sans);
}

@media (max-width: 980px) {
  .sw-stops { grid-template-columns: repeat(3, 1fr); }
  .sw-route-line { display: none; }
  .sw-split { grid-template-columns: 1fr; }
  .sw-layout { grid-template-columns: 1fr; }
  .sw-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sw-nav-toggle { display: flex; }

  .sw-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    background: var(--sw-bg);
    border-left: 1px solid var(--sw-line);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 20px 28px;
    gap: 18px;
    z-index: 110;
    transform: translateX(104%);
    transition: transform .28s ease;
    overflow-y: auto;
  }

  .sw-nav.is-open { transform: none; }

  .sw-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .sw-nav > ul > li > a {
    border-bottom: 1px solid var(--sw-line);
    padding: 14px 4px;
  }

  .sw-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
    background: transparent;
    padding: 0 0 8px 12px;
  }

  .sw-nav > ul > li.is-open > .sw-subnav { display: block; }

  .sw-search { width: 100%; }
  .sw-search input { flex: 1; width: auto; }

  body.nav-open .sw-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .sw-nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .sw-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sw-stops { grid-template-columns: repeat(2, 1fr); }
  .sw-entry { grid-template-columns: 72px 1fr; gap: 12px; }
  .sw-article-list a { grid-template-columns: 1fr; }
  .sw-detail { padding: 22px 16px; }
  .sw-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .sw-map-actions { flex-direction: column; }
  .sw-btn { width: 100%; }
  .sw-stops { grid-template-columns: 1fr 1fr; }
  .sw-logo-text strong { font-size: 14px; }
}
