
  :root {
    --bg: #ffffff;
    --bg-muted: #f6f8fa;
    --border: #d1d9e0;
    --text: #1f2328;
    --text-muted: #656d76;
    --link: #0969da;
    --accent: #1f883d;
    --warning: #fb8500;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body {
    background: var(--bg); color: var(--text);
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-size: 15px; line-height: 1.6;
  }
  a { color: var(--link); text-decoration: none; }

  .nav-back {
    position: fixed; top: 14px; right: 14px; z-index: 10;
    background: white; padding: 6px 12px;
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text); font-size: 13px;
  }

  .layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
  }

  aside {
    background: var(--bg-muted);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    position: sticky; top: 0;
    height: 100vh; overflow-y: auto;
  }
  .repo {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 24px; font-weight: 600;
  }
  .repo-icon {
    width: 24px; height: 24px;
    background: var(--text); border-radius: 4px;
    display: grid; place-items: center;
    color: white; font-size: 11px;
  }
  .nav-section { margin-bottom: 24px; }
  .nav-heading {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted);
    font-weight: 600; margin-bottom: 8px;
  }
  .nav-section a {
    display: block; padding: 6px 8px;
    color: var(--text); border-radius: 4px;
    font-size: 14px;
  }
  .nav-section a:hover { background: rgba(0,0,0,0.05); }
  .nav-section a.active {
    background: white; color: var(--link);
    font-weight: 500;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  }

  main { padding: 48px 80px; max-width: 920px; }

  .breadcrumb {
    font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
  }

  h1 {
    font-size: 32px; font-weight: 600;
    letter-spacing: -0.02em; margin-bottom: 8px;
  }
  .meta-line {
    color: var(--text-muted); font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border);
  }

  .stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-bottom: 32px;
  }
  .stat-card {
    border: 1px solid var(--border); border-radius: 8px; padding: 16px;
  }
  .stat-card .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px; font-weight: 600;
  }
  .stat-card .lbl { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

  .hero-img {
    width: 100%; height: 220px;
    background: url('https://picsum.photos/seed/min-fujian/1800/600') center/cover;
    border-radius: 8px; margin-bottom: 32px;
    border: 1px solid var(--border);
  }

  h2 {
    font-size: 22px; font-weight: 600;
    margin: 40px 0 16px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
  }

  .day {
    border: 1px solid var(--border); border-radius: 8px;
    margin-bottom: 16px; overflow: hidden;
  }
  .day-header {
    background: var(--bg-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    gap: 16px; flex-wrap: wrap;
  }
  .day-id {
    background: var(--text); color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; padding: 2px 8px;
    border-radius: 4px; font-weight: 500;
  }
  .day-date { font-weight: 600; }
  .day-title {
    color: var(--text-muted); margin-left: auto;
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
  }
  .day-body {
    display: grid; grid-template-columns: 200px 1fr;
    gap: 16px; padding: 16px;
  }
  .day-img {
    height: 140px; background-size: cover; background-position: center;
    border-radius: 4px;
  }
  .day-content ul { list-style: none; }
  .day-content li {
    padding: 4px 0; font-size: 14px;
    display: flex; gap: 8px;
  }
  .day-content li::before { content: '▸'; color: var(--text-muted); flex-shrink: 0; }

  .callout {
    border-left: 4px solid var(--warning);
    background: rgba(251, 133, 0, 0.08);
    padding: 12px 16px; border-radius: 4px;
    margin: 16px 0; font-size: 14px;
  }
  .callout-title { font-weight: 600; margin-bottom: 4px; color: var(--warning); }

  table {
    width: 100%; border-collapse: collapse;
    border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; margin: 16px 0; font-size: 14px;
  }
  thead { background: var(--bg-muted); }
  th, td {
    padding: 10px 12px; text-align: left;
    border-bottom: 1px solid var(--border);
  }
  th { font-weight: 600; font-size: 13px; }
  tbody tr:last-child td { border-bottom: none; }
  td.num { font-family: 'JetBrains Mono', monospace; }

  .badge {
    display: inline-block; padding: 2px 8px;
    border-radius: 100px; font-size: 11px; font-weight: 500;
  }
  .badge.done { background: rgba(31, 136, 61, 0.15); color: var(--accent); }
  .badge.todo { background: rgba(251, 133, 0, 0.15); color: var(--warning); }

  /* === Mobile === */
  @media (max-width: 820px) {
    .layout { grid-template-columns: 1fr; }
    aside {
      position: sticky; top: 0; z-index: 5;
      height: auto; padding: 12px 16px;
      border-right: none;
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center; gap: 12px;
      overflow-x: auto; flex-wrap: nowrap;
    }
    aside .repo { margin-bottom: 0; flex-shrink: 0; }
    .nav-section { margin-bottom: 0; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
    .nav-heading { display: none; }
    .nav-section a { padding: 4px 10px; font-size: 13px; white-space: nowrap; }
    .nav-section:nth-child(2), .nav-section:nth-child(4) { display: none; }
    main { padding: 24px 16px; }
    h1 { font-size: 24px; }
    .meta-line { font-size: 13px; }
    .hero-img { height: 140px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-card .num { font-size: 20px; }
    h2 { font-size: 18px; margin-top: 28px; }
    .day-header { gap: 8px; padding: 10px 12px; }
    .day-title { margin-left: 0; flex-basis: 100%; font-size: 12px; }
    .day-body { grid-template-columns: 1fr; padding: 12px; }
    .day-img { height: 160px; }
    table { font-size: 13px; display: block; overflow-x: auto; }
    th, td { padding: 8px 10px; white-space: nowrap; }
    .nav-back { top: auto; bottom: 14px; right: 14px; }
  }
  @media (max-width: 480px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 22px; }
    .hero-img { height: 100px; }
  }

/* ── 行程表格 ── */
.itinerary { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.itinerary th { background: var(--accent); color: #fff; padding: .5rem .75rem; text-align: left; }
.itinerary td { padding: .45rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.itinerary tr:last-child td { border-bottom: none; }
.itinerary .day-header td { background: var(--bg-secondary); font-weight: 600; }
.itinerary .transport { color: var(--text-muted); font-size: .82rem; }

/* ── 高德地图嵌入 ── */
.amap-embed { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--border); border-radius: 6px; }
@media (max-width: 600px) { .amap-embed { aspect-ratio: 4/3; } }

/* === Markdown content polish === */
main h1 {
  font-size: 32px; font-weight: 700;
  margin-top: 8px; margin-bottom: 24px;
  letter-spacing: -0.02em; line-height: 1.2;
}
main h1::after {
  content: ''; display: block;
  width: 56px; height: 3px;
  background: var(--link);
  margin-top: 14px; border-radius: 2px;
}
main h2 {
  font-size: 22px; font-weight: 600;
  margin: 40px 0 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
main h3 {
  font-size: 17px; font-weight: 600;
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--link);
  line-height: 1.4;
}
main p { margin-bottom: 12px; }
main ul, main ol { padding-left: 24px; margin-bottom: 16px; }
main li { margin-bottom: 4px; }
main li::marker { color: var(--text-muted); }
main blockquote {
  margin: 16px 0; padding: 12px 16px;
  border-left: 4px solid var(--link);
  background: rgba(9,105,218,0.06);
  border-radius: 0 6px 6px 0;
}
main blockquote p:last-child { margin-bottom: 0; }
main code:not(pre code) {
  background: var(--bg-muted); padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
main pre {
  background: var(--bg-muted);
  padding: 12px 16px; border-radius: 6px;
  overflow-x: auto; border: 1px solid var(--border);
  margin: 16px 0; font-size: 13px;
}
main pre code { background: transparent; padding: 0; }
main hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
main strong { font-weight: 600; }
main table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin: 16px 0; font-size: 14px;
}
main thead { background: var(--bg-muted); }
main th, main td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
main th { font-weight: 600; font-size: 13px; }
main tbody tr:last-child td { border-bottom: none; }
main tbody tr:hover { background: rgba(9,105,218,0.03); }

/* === Custom fenced blocks === */

/* day card */
.day-card {
  border: 1px solid var(--border); border-radius: 8px;
  margin: 20px 0; overflow: hidden;
}
.day-card-header {
  background: var(--bg-muted); padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.day-date {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  background: var(--text); color: white;
  padding: 3px 8px; border-radius: 4px; font-weight: 500;
}
.day-title { font-weight: 600; font-size: 15px; }
.day-distance {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--text-muted);
}
.day-events { list-style: none; padding: 12px 16px; margin: 0; }
.day-events li {
  padding: 6px 0; font-size: 14px;
  border-bottom: 1px dashed var(--border);
}
.day-events li:last-child { border-bottom: none; }
.day-events li::before { content: '▸ '; color: var(--text-muted); }
.day-stay {
  padding: 10px 16px; background: var(--bg-muted);
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}

/* stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin: 20px 0;
}
.stats-grid .stat-card {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 16px;
}
.stats-grid .stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 700; color: var(--text);
  line-height: 1;
}
.stats-grid .stat-lbl {
  color: var(--text-muted); font-size: 12px;
  margin-top: 6px; letter-spacing: 0.5px;
}

/* callouts */
.callout {
  border-left: 4px solid var(--text-muted);
  background: rgba(0,0,0,0.04);
  padding: 12px 16px; border-radius: 0 6px 6px 0;
  margin: 20px 0; font-size: 14px;
}
.callout-title { font-weight: 600; margin-bottom: 4px; }
.callout-info { border-left-color: var(--link); background: rgba(9,105,218,0.06); }
.callout-info .callout-title { color: var(--link); }
.callout-warn { border-left-color: var(--warning); background: rgba(251,133,0,0.08); }
.callout-warn .callout-title { color: var(--warning); }
.callout-success { border-left-color: var(--accent); background: rgba(31,136,61,0.08); }
.callout-success .callout-title { color: var(--accent); }
.callout-danger { border-left-color: #cf222e; background: rgba(207,34,46,0.06); }
.callout-danger .callout-title { color: #cf222e; }

@media (max-width: 820px) {
  .day-card-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .day-distance { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-num { font-size: 22px; }
}

/* === amap === */
.amap { margin: 20px 0; }
.amap img {
  width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 8px;
}
.amap figcaption {
  margin-top: 8px; font-size: 13px;
  color: var(--text-muted); text-align: center;
}
.amap-fallback {
  border: 1px dashed var(--warning);
  background: rgba(251,133,0,0.08);
  padding: 16px; border-radius: 8px;
  margin: 20px 0; font-size: 14px;
}
.amap-fallback strong { color: var(--warning); display: block; margin-bottom: 8px; }
.amap-fallback pre {
  margin-top: 8px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; background: white; padding: 10px; border-radius: 4px;
  border: 1px solid var(--border);
}

/* === day-stay & day-note (extra,mockup 没有) === */
.day-stay {
  padding: 10px 16px; background: var(--bg-muted);
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.day-note {
  margin: 8px 0 0; padding: 8px 12px;
  background: rgba(251,133,0,0.06); border-left: 3px solid var(--warning);
  font-size: 13px; color: var(--text);
}

/* === day-body 默认单列;有图时启用 mockup 的 200px+1fr 双列 === */
.day-body { display: block; padding: 12px 16px; }
.day--with-image .day-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px;
}
.day--with-image .day-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}
@media (max-width: 820px) {
  .day--with-image .day-body { grid-template-columns: 1fr; }
  .day--with-image .day-img { height: 160px; }
}

/* === hero image (cover) === */
.hero-img {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin: 8px 0 24px;
  border: 1px solid var(--border);
}
@media (max-width: 820px) { .hero-img { height: 160px; } }

/* === intro 段落淡化 === */
main p.intro {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 28px; line-height: 1.7;
}

/* === summary blockquote 突出 === */
main blockquote.summary {
  font-size: 15px; line-height: 1.7;
  border-left: 4px solid var(--link);
  background: rgba(9,105,218,0.06);
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  margin: 24px 0; color: var(--text);
}

/* === todo list === */
.todo-list { list-style: none; padding-left: 0; }
.todo-list .todo-item { padding: 6px 0; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.todo-list .todo-item.done .todo-text { color: var(--text-muted); text-decoration: line-through; }
.todo-list .todo-box { color: var(--link); font-size: 16px; }

/* === amap === */
.amap { margin: 16px 0; }
.amap img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
.amap figcaption { margin-top: 8px; font-size: 13px; color: var(--text-muted); text-align: center; }
.amap-container {
  width: 100%;
  height: 520px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 820px) { .amap-container { height: 360px; } }

.amap-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.amap-leg {
  display: inline-block;
  padding: 3px 8px;
  background: var(--link);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.amap-leg:hover { opacity: 0.85; }

.amap-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.amap-legend .dot {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}

/* === callout type variants(mockup 的 .callout 只有 warning,我们扩成多 type) === */
.callout-info { border-left: 4px solid var(--link); background: rgba(9,105,218,0.06); }
.callout-info .callout-title { color: var(--link); }
.callout-warn { border-left: 4px solid var(--warning); background: rgba(251,133,0,0.08); }
.callout-warn .callout-title { color: var(--warning); }
.callout-success { border-left: 4px solid var(--accent); background: rgba(31,136,61,0.08); }
.callout-success .callout-title { color: var(--accent); }
.callout-danger { border-left: 4px solid #cf222e; background: rgba(207,34,46,0.06); }
.callout-danger .callout-title { color: #cf222e; }
