/* lonloop.com — 旅行 (Travel) shared styles.
   New section (first non-engineering one on this site), so it does not inherit
   a stylesheet — it gets its own, same as /collection/ (reader.css) and /radar/
   (radar.css) each do. Design tokens, the a11y base, and the .topnav/.article/
   .prose/.attrib rules below are intentionally byte-for-byte the same values as
   reader.css: three independent copies of one contract, which is the existing
   pattern (see reader.css's own note on the --dim drift this caused once
   already). Keep all three in sync if any of these change.
*/
:root{
  --bg:#0b0d12; --bg2:#11141b; --card:#151924; --line:#222838;
  --txt:#e7eaf0; --muted:#9aa3b2; --dim:#808999;
  --accent:#7c9cff; --accent2:#5be0c8; --chip:#1b2130;
  --radius:16px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:radial-gradient(1200px 600px at 80% -10%, #1a2030 0%, var(--bg) 55%) no-repeat, var(--bg);
  color:var(--txt);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  line-height:1.65; -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
a{color:inherit}

:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

/* top nav */
.topnav{max-width:880px;margin:0 auto;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.topnav .brand{font-weight:800;font-size:20px;letter-spacing:-.02em;text-decoration:none;color:var(--txt)}
.topnav .brand .dot{color:var(--accent)}
.topnav .tabs{display:flex;gap:6px}
.topnav .tab{text-decoration:none;color:var(--muted);font-weight:600;font-size:15px;padding:7px 14px;border-radius:999px;transition:color .15s ease,background .15s ease}
.topnav .tab:hover{color:var(--txt)}
.topnav .tab[aria-current]{color:var(--accent);background:var(--chip)}

/* /travel/ hub — same shape as .collection in reader.css, renamed for the section */
.travel{max-width:880px;margin:0 auto;padding:40px 24px 96px}
.page-head{margin-bottom:34px}
.page-head .eyebrow{color:var(--accent2);font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:13px}
.page-head h1{font-size:clamp(30px,6vw,44px);letter-spacing:-.02em;margin:10px 0 12px;font-weight:800}
.page-head p{color:var(--muted);font-size:16px;max-width:640px}

.trip-list{display:flex;flex-direction:column;gap:16px}
.trip-card{display:block;text-decoration:none;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;transition:transform .15s ease,border-color .15s ease}
.trip-card:hover{transform:translateY(-3px);border-color:#33405e}
.trip-card .tc-meta{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;color:var(--dim);font-size:12.5px;margin-bottom:11px}
.trip-card .badge{font-size:11px;font-weight:700;letter-spacing:.04em;padding:3px 8px;border-radius:999px;background:rgba(124,156,255,.12);color:var(--accent);border:1px solid rgba(124,156,255,.25)}
.trip-card h2{font-size:20px;font-weight:700;color:var(--txt);line-height:1.35;margin-bottom:8px}
.trip-card .excerpt{color:var(--muted);font-size:14.5px;line-height:1.6}
.trip-card .tags{color:var(--dim);font-size:13px;margin-top:13px}

/* /travel/<slug>/ detail page — same shape as .article in reader.css */
.article{max-width:720px;margin:0 auto;padding:32px 24px 100px}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-size:14px;font-weight:600;margin-bottom:26px}
.back:hover{color:var(--accent)}
.article h1.title{font-size:clamp(26px,5vw,36px);line-height:1.28;letter-spacing:-.01em;font-weight:800;margin-bottom:10px}
.article .kicker{color:var(--accent2);font-weight:600;font-size:12.5px;letter-spacing:.1em;margin-bottom:26px}

.attrib{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin-bottom:34px}
.attrib .row{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:14px}
.attrib .row + .row{margin-top:8px}
.attrib .k{color:var(--dim);margin-right:6px}
.attrib .v{color:var(--txt)}
.attrib .note{color:var(--dim);font-size:12.5px;line-height:1.6;margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}

.prose{font-size:17px;line-height:1.9;color:#d7dbe4}
.prose p{margin:0 0 20px}
.prose h2{font-size:22px;font-weight:700;color:var(--txt);margin:44px 0 6px;line-height:1.4}
.prose .day-route{color:var(--dim);font-size:14px;margin:0 0 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.prose h3{font-size:18.5px;font-weight:700;color:var(--txt);margin:30px 0 12px}
.prose ul,.prose ol{margin:0 0 20px;padding-left:22px}
.prose li{margin:6px 0}
.prose a{color:var(--accent)}
.prose strong,.prose b{color:var(--txt);font-weight:700}
.prose hr{border:none;border-top:1px solid var(--line);margin:34px 0}
.prose .signoff{color:var(--muted);font-style:italic;margin-top:32px;padding-top:18px;border-top:1px solid var(--line)}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em;background:var(--chip);border:1px solid var(--line);border-radius:5px;padding:1.5px 6px;color:#cdd6f5}

/* stop list — one <li class="stop"> per attraction inside a day's <ul> */
.prose ul.stops{list-style:none;padding-left:0;margin:0 0 8px}
.prose ul.stops li.stop{margin:0 0 16px;padding-left:18px;border-left:2px solid var(--line)}
.prose .stop-name{display:block;color:var(--txt);font-weight:700;margin-bottom:3px}

/* practical-tip callout, used inline between stops and in the 实用信息 section */
.tip{background:var(--bg2);border:1px solid var(--line);border-left:3px solid var(--accent2);border-radius:10px;padding:12px 16px;margin:18px 0;color:var(--muted);font-size:14.5px;line-height:1.7}
.tip b{color:var(--txt)}

/* the route map figure */
.prose figure.mapfig{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin:30px 0}
.prose figure.mapfig svg{width:100%;height:auto;display:block}
.prose figure.mapfig figcaption{color:var(--dim);font-size:13px;line-height:1.6;text-align:left;margin-top:14px}
.map-legend{display:flex;flex-wrap:wrap;gap:12px 18px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--dim)}
.map-legend .li{display:flex;align-items:center;gap:6px}
.map-legend .sw{width:16px;height:0;border-top:2.5px solid var(--accent);flex-shrink:0}
.map-legend .sw.dashed{border-top-style:dashed;opacity:.65}
.map-legend .dot{width:10px;height:10px;border-radius:50%;background:var(--accent);flex-shrink:0}
.map-legend .dot.hub{background:var(--accent2)}
.map-legend .diamond{width:8px;height:8px;border:1.5px solid var(--dim);transform:rotate(45deg);flex-shrink:0}

.inset-pair{display:grid;grid-template-columns:1.15fr 1fr;gap:22px;margin-top:22px}
.inset-pair .inset h3{font-size:14px;font-weight:700;color:var(--txt);margin:0 0 10px}
.inset-pair .inset svg{width:100%;height:auto;display:block}
.inset-pair .inset p{color:var(--dim);font-size:12.5px;line-height:1.6;margin-top:10px}
@media (max-width:600px){.inset-pair{grid-template-columns:1fr}}

.site-foot{max-width:880px;margin:0 auto;padding:26px 24px 48px;border-top:1px solid var(--line);color:var(--dim);font-size:14px;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}
.site-foot a{color:var(--muted);text-decoration:none}
.site-foot a:hover{color:var(--accent)}

@media (max-width:520px){
  .travel,.article,.site-foot{padding-left:18px;padding-right:18px}
}
