/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f5f0e8;   /* 米白 */
  --bg-dark:   #1a1814;   /* 墨黑（地图底） */
  --ink:       #1c1917;   /* 墨黑 */
  --earth:     #8b6914;   /* 土黄 */
  --teal:      #2d4a4a;   /* 深青 */
  --vermilion: #c8402a;   /* 暗红 */
  --muted:     #7a6f5a;   /* 暗灰褐 */
  --light:     #e8e0d0;   /* 浅米 */
  --card:      #faf7f2;   /* 卡片白 */
  --border:    #d4c8b0;   /* 边框 */
  --serif:     "Noto Serif SC", "Source Han Serif CN", "SimSun", serif;
  --sans:      "Noto Sans SC", "Source Han Sans CN", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}

::selection { background: var(--vermilion); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 3px; }

/* ==================== LAYOUT ==================== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }

/* ==================== HERO ==================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #f5f0e8;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200,160,40,0.08) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(200,160,40,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(200,160,40,0.04) 40px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 1.5rem;
  font-family: var(--sans);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #c8b89a;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.kw {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(200,160,40,0.4);
  color: var(--earth);
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn-primary, .btn-secondary, .btn-accent {
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-family: var(--sans);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--vermilion);
  color: #fff;
}
.btn-primary:hover { background: #a83220; }
.btn-secondary {
  background: transparent;
  color: #c8b89a;
  border: 1px solid rgba(200,160,40,0.5);
}
.btn-secondary:hover { border-color: var(--earth); color: var(--earth); }
.btn-accent {
  background: var(--earth);
  color: var(--ink);
}
.btn-accent:hover { background: #6d5300; }

/* ==================== ARTICLE SECTION ==================== */
#article { background: var(--bg); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.section-desc { color: var(--muted); font-size: 0.9rem; }

/* Tabs */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--sans);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--vermilion); border-bottom-color: var(--vermilion); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.85;
}
.article-card p { margin-bottom: 1rem; }
.article-card p:last-child { margin-bottom: 0; }
.article-card strong { color: var(--vermilion); }

/* Structure */
.structure-list { display: flex; flex-direction: column; gap: 1.5rem; }
.structure-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}
.struct-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--earth);
  line-height: 1;
  padding-top: 0.1rem;
}
.struct-body h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.struct-body p { font-size: 0.92rem; color: #4a4035; line-height: 1.8; }

/* Thesis */
.thesis-card blockquote {
  border-left: 3px solid var(--vermilion);
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--vermilion);
  line-height: 1.6;
}
.thesis-card h3 { font-family: var(--serif); margin: 1.5rem 0 0.75rem; font-size: 1rem; }
.thesis-list { list-style: none; }
.thesis-list li { padding: 0.5rem 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.thesis-list li:last-child { border-bottom: none; }

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.why-item { background: var(--light); border-radius: 4px; padding: 1.25rem; }
.why-num {
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--vermilion);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.8rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}
.why-item h4 { font-family: var(--serif); margin-bottom: 0.5rem; font-size: 0.95rem; }
.why-item p { font-size: 0.85rem; color: #5a5045; line-height: 1.7; }

/* ==================== TIMELINE ==================== */
#timeline { background: var(--ink); color: #f5f0e8; }
#timeline .section-title { color: #f5f0e8; }
#timeline .section-desc { color: #8a7f6a; }

.timeline {
  position: relative;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--earth), var(--vermilion));
}
.tl-item {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2.5rem;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: calc(1.5rem - 5px);
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: var(--earth);
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.tl-year {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--earth);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.tl-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #f5f0e8;
}
.tl-locations { font-size: 0.8rem; color: #8a7f6a; margin-bottom: 0.5rem; }
.tl-event { font-size: 0.88rem; color: #c8b89a; line-height: 1.7; margin-bottom: 0.5rem; }
.tl-poems { font-size: 0.8rem; color: var(--earth); font-style: italic; }
.tl-poems::before { content: '📜 '; }
.tl-why {
  font-size: 0.82rem;
  color: #7a6f5a;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #3a3530;
}
.tl-why::before { content: '→ '; color: var(--vermilion); }

/* ==================== MAP ==================== */
#map { background: #1a1814; color: #f5f0e8; }
#map .section-title { color: #f5f0e8; }
#map .section-desc { color: #8a7f6a; }

.map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .map-layout { grid-template-columns: 1fr; }
}
.map-container { background: #1a1814; border-radius: 4px; overflow: hidden; }
@media (max-width: 800px) {
  .map-container { overflow-x: auto; }
}
#route-map { display: block; width: 100%; height: auto; }

.map-sidebar { position: sticky; top: 3rem; }
@media (max-width: 800px) {
  .map-sidebar { position: static; }
}
.detail-card {
  background: #221f1a;
  border: 1px solid #3a3530;
  border-radius: 4px;
  padding: 1.25rem;
  min-height: 200px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.detail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #5a5045;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.6;
}
.detail-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #f5f0e8;
}
.detail-card .detail-mod {
  font-size: 0.78rem;
  color: var(--earth);
  margin-bottom: 0.75rem;
}
.detail-card .detail-theme {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: rgba(200,64,42,0.2);
  color: var(--vermilion);
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.detail-card p { font-size: 0.85rem; color: #c8b89a; line-height: 1.7; margin-bottom: 0.75rem; }
.detail-card .detail-poems {
  font-size: 0.8rem;
  color: var(--earth);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.detail-card .detail-quote {
  border-left: 2px solid var(--vermilion);
  padding-left: 0.75rem;
  font-size: 0.85rem;
  color: #c8b89a;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.detail-card .detail-tip {
  font-size: 0.78rem;
  color: #7a6f5a;
  padding-top: 0.5rem;
  border-top: 1px dashed #3a3530;
}
.detail-card .detail-meaning {
  font-size: 0.85rem;
  color: #c8b89a;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* SVG node styles */
.map-node { cursor: pointer; transition: all 0.2s; }
.map-node:hover .node-circle { fill: var(--vermilion); }
.map-node .node-circle { transition: fill 0.2s; }
.map-node .node-label { font-family: var(--serif); font-size: 11px; fill: #c8b89a; pointer-events: none; }
.map-node.active .node-circle { fill: var(--vermilion); r: 8; }

/* ==================== ROUTE PLANNER ==================== */
#routes { background: var(--bg); }

.route-tabs {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.route-tabs .tab-btn { margin-bottom: -1px; }

.route-panel { display: none; }
.route-panel.active { display: block; animation: fadeIn 0.3s ease; }

.route-meta { text-align: center; margin-bottom: 2rem; }
.route-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.route-tags { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 0.75rem; }
.rtag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
}
.route-desc { font-size: 0.9rem; color: var(--muted); max-width: 600px; margin: 0 auto; }

.route-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  position: relative;
  transition: border-color 0.2s;
}
.day-card:hover { border-color: var(--earth); }
.day-card.highlighted { border-color: var(--vermilion); background: #fff9f8; }
.day-n {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--earth);
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: block;
}
.day-card h4 { font-family: var(--serif); font-size: 1rem; margin-bottom: 0.4rem; }
.day-card p { font-size: 0.85rem; color: #5a5045; line-height: 1.7; margin-bottom: 0.5rem; }
.day-poems { font-size: 0.78rem; color: var(--earth); font-style: italic; margin-bottom: 0.4rem; }
.day-tip { font-size: 0.78rem; color: #7a6f5a; margin-bottom: 0.75rem; }

.copy-btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  font-family: var(--sans);
}
.copy-btn:hover { background: var(--earth); color: #fff; border-color: var(--earth); }
.copy-btn.copied { background: var(--teal); color: #fff; border-color: var(--teal); }

.route-copy-all { text-align: center; margin-top: 1.5rem; }

/* Thematic */
.thematic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.thematic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}
.thematic-card h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.5rem; }
.thematic-card .route-desc { font-size: 0.85rem; color: #5a5045; margin-bottom: 0.75rem; }
.thematic-route {
  font-size: 0.9rem;
  color: var(--earth);
  font-weight: 600;
  margin: 0.75rem 0;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.tr-loc { font-family: var(--serif); }
.thematic-card .day-poems, .thematic-card .day-tip { font-size: 0.78rem; }

/* ==================== POEMS ==================== */
#poems { background: var(--light); }
#poems .section-title { color: var(--ink); }

.poem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.poem-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.poem-item:hover { border-color: var(--earth); background: #fff; }
.poem-item.active { border-color: var(--vermilion); background: #fff9f8; }
.poem-item .poem-name {
  font-family: var(--serif);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.poem-item .poem-loc { font-size: 0.78rem; color: var(--earth); }
.poem-item.active .poem-loc { color: var(--vermilion); }

/* ==================== POEM STAGE TABS ==================== */
.poem-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.poem-filter-tab {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-family: var(--sans);
  color: var(--earth);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.poem-filter-tab:hover {
  border-color: var(--earth);
  color: var(--ink);
}
.poem-filter-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Stage summary banner */
.poem-stage-summary {
  font-size: 0.88rem;
  color: var(--earth);
  padding: 0.6rem 0 0.5rem;
  line-height: 1.6;
  min-height: 1.6em;
}
.poem-stage-summary-title {
  font-weight: 700;
  color: var(--ink);
}
.poem-stage-summary-count {
  color: var(--vermilion);
  font-weight: 600;
}
.poem-stage-summary-text {
  color: var(--earth);
}

/* Stage badge on poem card */
.poem-stage-badge {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--vermilion);
  border: 1px solid var(--vermilion);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  font-family: var(--sans);
}

/* ==================== FOOTER ==================== */
#footer { background: var(--ink); color: #5a5045; text-align: center; padding: 2rem 0; }
#footer p { font-size: 0.8rem; margin-bottom: 0.25rem; }

/* ==================== SOURCE NOTES ==================== */
#source-notes {
  background: #1e1c18;
  border-top: 1px solid #2a2520;
}
#source-notes .section-inner { max-width: 900px; }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.note-card {
  background: #252320;
  border: 1px solid #2a2520;
  border-radius: 6px;
  padding: 1.25rem;
}
.note-card h4 {
  font-size: 0.95rem;
  color: #c8402a;
  margin: 0 0 0.6rem;
  font-family: serif;
}
.note-card p {
  font-size: 0.82rem;
  color: #9a9080;
  line-height: 1.75;
  margin: 0 0 0.5rem;
}
.note-card p:last-child { margin-bottom: 0; }

/* ==================== SECTION TIP ==================== */
.section-tip {
  font-size: 0.78rem;
  color: #7a7060;
  margin: 0.4rem 0 0;
  font-style: italic;
}

/* ==================== ROUTE SELECTOR ==================== */
.selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.selector-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.selector-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.selector-badge {
  display: inline-block;
  background: var(--vermilion);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}
.selector-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.selector-card p {
  font-size: 0.82rem;
  color: #6a6050;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.selector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.smeta {
  font-size: 0.72rem;
  background: var(--light);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  color: #6a6050;
}
.selector-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--sans);
  margin-right: 0.5rem;
}
.selector-btn:hover { background: #1e3535; }

/* ==================== ROUTE META HEADER ==================== */
.route-meta-header {
  background: linear-gradient(135deg, #f0ebe0, #e8e0d0);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--teal);
}
.route-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  align-items: baseline;
}
.route-meta-row:last-of-type { margin-bottom: 0; }
.rmeta-item {
  font-size: 0.75rem;
  color: #5a5040;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  line-height: 1.5;
}
.route-meta-note {
  font-size: 0.72rem;
  color: #7a6050;
  margin-top: 0.5rem;
  font-style: italic;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ==================== ENHANCED DAY CARD ==================== */
.day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}
.day-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.day-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.day-n {
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: bold;
  background: var(--vermilion);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.day-stay {
  font-size: 0.72rem;
  color: #7a7060;
}
.day-theme {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: bold;
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--teal);
}
.day-places {
  font-size: 0.75rem;
  color: #6a6050;
  margin-bottom: 0.5rem;
}
.day-transport {
  font-size: 0.75rem;
  color: #5a7060;
  background: #f0ede5;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
}
.day-question {
  font-size: 0.75rem;
  color: var(--earth);
  background: #faf5e8;
  border: 1px solid #e0d0a0;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ==================== THEMATIC CARD ENHANCEMENT ==================== */
.route-meta-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.thematic-season {
  font-size: 0.75rem;
  color: #5a7060;
  margin-bottom: 0.5rem;
}
.thematic-note {
  font-size: 0.72rem;
  color: var(--earth);
  background: #faf5e8;
  border: 1px solid #e0d0a0;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* ==================== DUAL CITY PANEL ==================== */
.dual-city-body { margin-top: 0; }
.dual-city-intro {
  background: linear-gradient(135deg, #f0ebe0, #e8e0d0);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--earth);
}
.dual-city-intro p { font-size: 0.85rem; color: #5a5040; line-height: 1.75; margin: 0; }
.dual-city-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.dual-city-col h4 {
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}
.dual-city-col ul { list-style: none; padding: 0; margin: 0; }
.dual-city-col li {
  font-size: 0.8rem;
  color: #5a5040;
  margin-bottom: 0.6rem;
  line-height: 1.6;
  padding-left: 0.75rem;
  position: relative;
}
.dual-city-col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.dual-city-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.dual-city-meta .rmeta-item {
  display: block;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0.3rem 0;
}

/* ==================== DETAIL CARD SITE TYPE ==================== */
.detail-site-type {
  font-size: 0.75rem;
  color: var(--teal);
  background: #e8f0f0;
  border: 1px solid #b0c8c8;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* ==================== TRAVEL TIPS ==================== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.tip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}
.tip-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.tip-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.tip-card h4 {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.tip-card p {
  font-size: 0.78rem;
  color: #6a6050;
  line-height: 1.75;
  margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
  section { padding: 3rem 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions button { width: 100%; max-width: 280px; }
  .structure-item { grid-template-columns: 2rem 1fr; gap: 0.75rem; }
  .timeline::before { left: 1rem; }
  .tl-item { padding-left: 2.75rem; }
  .tl-item::before { left: calc(1rem - 5px); }
  .route-days { grid-template-columns: 1fr; }
  .selector-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .dual-city-cols { grid-template-columns: 1fr; }
}

/* ==================== HANDBOOK LINKS ==================== */
#handbook {
  background: #f5f0e8;
  border-top: 1px solid rgba(180, 150, 80, 0.2);
  border-bottom: 1px solid rgba(180, 150, 80, 0.2);
}
.handbook-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.handbook-text { flex: 1; min-width: 200px; }
.handbook-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.handbook-desc {
  font-size: 0.85rem;
  color: #6b5a48;
  margin: 0;
  line-height: 1.5;
}
.handbook-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.handbook-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  background: var(--vermilion);
  color: #fff;
  border: 1px solid var(--vermilion);
  transition: background 0.2s;
  white-space: nowrap;
}
.handbook-btn:hover { background: #a83220; border-color: #a83220; }
.handbook-btn.secondary {
  background: transparent;
  color: #8b5c3e;
  border-color: #8b5c3e;
}
.handbook-btn.secondary:hover {
  background: #8b5c3e;
  color: #fff;
}
/* ==================== MAP ENTRY CARD ==================== */
.map-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: rgba(200, 135, 74, 0.06);
  border: 1px solid rgba(200, 135, 74, 0.25);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.map-entry-text { flex: 1; min-width: 200px; }
.map-entry-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.map-entry-desc {
  font-size: 0.82rem;
  color: #6b5a48;
  margin: 0;
  line-height: 1.5;
}
.map-entry-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.map-entry-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  background: #4a6b6b;
  color: #fff;
  border: 1px solid #4a6b6b;
  transition: background 0.2s;
  white-space: nowrap;
}
.map-entry-btn:hover { background: #3a5555; border-color: #3a5555; }

/* Map real link inside SVG map section tip */
.map-real-link a {
  color: var(--vermilion);
  text-decoration: none;
  font-weight: 500;
}
.map-real-link a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .handbook-card { flex-direction: column; align-items: flex-start; }
  .handbook-actions { width: 100%; }
  .handbook-btn { flex: 1; text-align: center; }
  .map-entry-card { flex-direction: column; align-items: flex-start; }
  .map-entry-actions { width: 100%; }
  .map-entry-btn { flex: 1; text-align: center; }
}

/* ==================== STICKY NAV ==================== */
#page-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 24, 20, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #3a3530;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.7rem 1rem;
  color: #b8a98a;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: #f5f0e8; border-bottom-color: #c8402a; }
@media (max-width: 600px) {
  .nav-inner { padding: 0 1rem; gap: 0; }
  .nav-link { padding: 0.6rem 0.7rem; font-size: 0.8rem; }
}

/* ==================== UTILITY ==================== */
.hidden { display: none !important; }

/* ==================== TOAST ==================== */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2520;
  color: #f5f0e8;
  border: 1px solid #c8402a;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
#toast.show { opacity: 1; }

/* ==================== POEM TABS MOBILE ==================== */
@media (max-width: 600px) {
  .poem-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.5rem;
  }
  .poem-filter-tabs::-webkit-scrollbar { display: none; }
  .poem-filter-tab {
    flex-shrink: 0;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
  }
}

/* ==================== PRINT ==================== */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff !important; color: #1a1814 !important; font-size: 11pt; }
  #page-nav, .hero-actions, .route-tabs, .copy-btn, .tab-nav,
  button, [aria-label="页面导航"], footer { display: none !important; }
  .hero { padding: 2rem 0 !important; background: #fff !important; }
  .hero-title { font-size: 1.6rem !important; color: #1a1814 !important; }
  .hero-subtitle { font-size: 1rem !important; color: #444 !important; }
  .hero-keywords { display: none !important; }
  section { padding: 1.5rem 0 !important; border-bottom: 1px solid #ddd; }
  .section-inner { max-width: 100% !important; }
  .section-title { font-size: 1.1rem !important; color: #1a1814 !important; }
  .tab-content { display: block !important; }
  .tab-nav { display: none !important; }
  .timeline { padding-left: 0 !important; }
  .tl-item { break-inside: avoid; padding: 0.5rem 0; border-left: 2px solid #c8402a; }
  .map-container { overflow: visible !important; }
  #route-map { max-width: 100% !important; }
  .detail-card { border: 1px solid #ccc !important; break-inside: avoid; }
  .day-card { break-inside: avoid; border: 1px solid #ccc !important; margin-bottom: 0.5rem !important; }
  .selector-card, .thematic-card, .tips-card, .note-card {
    border: 1px solid #ccc !important; break-inside: avoid; margin-bottom: 0.5rem !important; }
  .route-meta-tags { display: none !important; }
  footer { display: none !important; }
  a[href]::after { content: none !important; }
}
