:root {
  --wl-cyan: #0891B2;
  --wl-cyan-dark: #0E7490;
  --wl-sky: #22D3EE;
  --wl-ink: #0F172A;
  --wl-muted: #64748B;
  --wl-line: #E2E8F0;
  --wl-bg: #F0F9FF;
  --wl-paper: #FFFFFF;
  --wl-radius: 16px;
  --wl-wrap: 1140px;
  --wl-font: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--wl-font);
  color: var(--wl-ink);
  background: var(--wl-bg);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
a:hover { color: var(--wl-cyan); }
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.3; }

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

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

.wl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.wl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wl-logo img { height: 40px; width: auto; }

.wl-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--wl-cyan), var(--wl-cyan-dark));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
}

.wl-logo strong { display: block; font-size: 17px; }
.wl-logo em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--wl-muted);
  margin-top: 2px;
}

.wl-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

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

.wl-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.wl-nav > ul > li.is-active > a,
.wl-nav > ul > li > a:hover {
  background: #E0F2FE;
  color: var(--wl-cyan-dark);
}

.wl-subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: var(--wl-paper);
  border: 1px solid var(--wl-line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
}

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

.wl-subnav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.wl-subnav a:hover,
.wl-subnav .is-active a {
  background: #E0F2FE;
  color: var(--wl-cyan);
}

.wl-search {
  display: flex;
  border: 1px solid var(--wl-line);
  border-radius: 999px;
  overflow: hidden;
  background: #F8FAFC;
}

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

.wl-search button {
  border: 0;
  background: var(--wl-cyan);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

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

.wl-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--wl-ink);
  border-radius: 2px;
}

.wl-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 90;
}

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

/* Route hero */
.wl-route {
  position: relative;
  padding: 52px 0 64px;
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(34, 211, 238, 0.28), transparent 55%),
    linear-gradient(135deg, #0F172A 0%, #164E63 55%, #0891B2 100%);
  color: #fff;
  overflow: hidden;
}

.wl-route-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.wl-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--wl-sky);
  font-weight: 700;
}

.wl-route h1 {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 12em;
}

.wl-route-desc {
  margin: 16px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36em;
  font-size: 15px;
}

.wl-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.wl-btn-primary {
  background: var(--wl-sky);
  color: #083344;
}

.wl-btn-primary:hover {
  background: #67E8F9;
  color: #083344;
  transform: translateY(-1px);
}

.wl-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.wl-btn-ghost:hover {
  border-color: var(--wl-sky);
  color: var(--wl-sky);
}

.wl-stops {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-stops a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  color: #fff;
}

.wl-stops a:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: var(--wl-sky);
  color: #fff;
  transform: translateX(4px);
}

.wl-stops span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wl-cyan);
  font-size: 12px;
  font-weight: 800;
}

.wl-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23F0F9FF' d='M0 24c120 16 240-16 360-8s240 32 360 24 240-32 360-24 240 24 360 16V48H0z'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
  animation: wl-wave 8s ease-in-out infinite;
}

@keyframes wl-wave {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-3px); }
}

/* Sections */
.wl-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.wl-section-hd h2 {
  font-size: 24px;
  color: var(--wl-ink);
}

.wl-section-hd span,
.wl-section-hd a {
  font-size: 13px;
  color: var(--wl-muted);
}

.wl-section-hd a:hover { color: var(--wl-cyan); }

.wl-stations,
.wl-milestones,
.wl-twin {
  margin: 44px 0;
}

/* Station rail */
.wl-station-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.wl-station-rail::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wl-cyan), transparent);
  z-index: 0;
}

.wl-station {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 18px 20px;
  background: var(--wl-paper);
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  min-height: 200px;
}

.wl-station:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.12);
  border-color: var(--wl-cyan);
  color: inherit;
}

.wl-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wl-cyan);
  border: 3px solid #E0F2FE;
  box-shadow: 0 0 0 2px var(--wl-cyan);
  margin: -34px auto 8px;
}

.wl-station em {
  font-style: normal;
  font-size: 12px;
  color: var(--wl-cyan);
  font-weight: 600;
}

.wl-station h3 { font-size: 16px; flex: 1; }
.wl-station p { margin: 0; font-size: 13px; color: var(--wl-muted); }
.wl-station time { font-size: 12px; color: var(--wl-muted); }

/* Milestone vertical */
.wl-mile-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 8px;
}

.wl-mile-list::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--wl-sky), var(--wl-line));
}

.wl-mile {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  position: relative;
}

.wl-mile-dot {
  width: 16px;
  height: 16px;
  margin-top: 22px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--wl-paper);
  border: 3px solid var(--wl-cyan);
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.wl-mile:nth-of-type(even) .wl-mile-dot { border-color: #0284C7; }

.wl-mile-card {
  background: var(--wl-paper);
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  padding: 18px 22px;
}

.wl-mile-card time {
  font-size: 12px;
  color: var(--wl-cyan);
  font-weight: 700;
}

.wl-mile-card h3 {
  font-size: 18px;
  margin: 6px 0 8px;
}

.wl-mile-card p {
  margin: 0 0 10px;
  color: var(--wl-muted);
  font-size: 14px;
}

.wl-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--wl-cyan);
}

/* Twin */
.wl-twin {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.wl-twin-col {
  background: var(--wl-paper);
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  padding: 24px;
}

.wl-twin-map {
  background: linear-gradient(165deg, #164E63 0%, #0F172A 100%);
  border-color: transparent;
  color: #fff;
}

.wl-twin-map .wl-section-hd h2 { color: #fff; }
.wl-twin-map .wl-section-hd a { color: rgba(255, 255, 255, 0.65); }
.wl-twin-map .wl-section-hd a:hover { color: var(--wl-sky); }

.wl-case-grid {
  display: grid;
  gap: 12px;
}

.wl-case-grid a {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background: var(--wl-bg);
  border: 1px solid transparent;
}

.wl-case-grid a:hover {
  border-color: var(--wl-cyan);
  color: inherit;
}

.wl-case-grid h3 { font-size: 15px; margin-bottom: 6px; }
.wl-case-grid p { margin: 0 0 8px; font-size: 13px; color: var(--wl-muted); }
.wl-case-grid span { font-size: 12px; color: var(--wl-cyan); font-weight: 600; }

.wl-trip-list li + li { margin-top: 10px; }

.wl-trip-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--wl-sky);
}

.wl-trip-list a:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #fff;
}

.wl-trip-date {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--wl-sky);
}

.wl-trip-list strong { font-size: 14px; font-weight: 600; }

/* Inner */
.wl-crumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--wl-muted);
  background: var(--wl-paper);
  border-bottom: 1px solid var(--wl-line);
}

.wl-crumb span { margin: 0 6px; color: #94A3B8; }

.wl-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0 48px;
  align-items: start;
}

.wl-panel {
  background: var(--wl-paper);
  border: 1px solid var(--wl-line);
  border-radius: var(--wl-radius);
  padding: 22px;
  margin-bottom: 18px;
}

.wl-panel-hd {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wl-line);
}

.wl-panel-hd h3 { font-size: 16px; }

.wl-page-title {
  font-size: 26px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wl-line);
}

.wl-article-list li + li {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--wl-line);
}

.wl-article-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
}

.wl-article-list a:not(:has(img)) { grid-template-columns: 1fr; }

.wl-article-list img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.wl-article-list h2 { font-size: 18px; margin-bottom: 6px; }
.wl-article-list p { margin: 0 0 8px; color: var(--wl-muted); font-size: 14px; }

.wl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--wl-muted);
}

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

.wl-empty {
  padding: 40px;
  text-align: center;
  color: var(--wl-muted);
}

.wl-detail h1 {
  font-size: 28px;
  text-align: center;
}

.wl-richtext {
  font-size: 16px;
  line-height: 1.85;
}

.wl-richtext p { margin: 0 0 1em; }
.wl-richtext img { margin: 1em auto; border-radius: 12px; }

.wl-pagerow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--wl-line);
  font-size: 13px;
}

.wl-pagerow a { color: var(--wl-cyan); }
.wl-pagerow span { color: var(--wl-muted); }

.wl-rank { counter-reset: wl-rank; }
.wl-rank li {
  counter-increment: wl-rank;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--wl-line);
  font-size: 14px;
}

.wl-rank li::before {
  content: counter(wl-rank);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wl-bg);
  color: var(--wl-muted);
  font-size: 12px;
  font-weight: 700;
}

.wl-rank li:nth-child(-n+3)::before {
  background: var(--wl-cyan);
  color: #fff;
}

.wl-side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--wl-line);
  font-size: 14px;
}

.wl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.wl-tags a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--wl-bg);
  border: 1px solid var(--wl-line);
  font-size: 12px;
}

.wl-tags a:hover {
  border-color: var(--wl-cyan);
  color: var(--wl-cyan);
}

.wl-ad { font-size: 14px; color: var(--wl-muted); }

.wl-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.wl-page li a,
.wl-page li span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--wl-line);
  background: var(--wl-paper);
  font-size: 13px;
}

.wl-page li.active a,
.wl-page li a:hover {
  background: var(--wl-cyan);
  border-color: var(--wl-cyan);
  color: #fff;
}

.wl-page .dots { border: 0; background: transparent; }

/* Footer */
.wl-footer {
  margin-top: 24px;
  padding: 40px 0 28px;
  background: #0F172A;
  color: rgba(255, 255, 255, 0.75);
}

.wl-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.wl-footer h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.wl-footer h4 { color: var(--wl-sky); font-size: 14px; margin-bottom: 12px; }
.wl-footer p { margin: 0 0 6px; font-size: 13px; }

.wl-foot-links li { margin-bottom: 6px; }
.wl-foot-links a { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.wl-foot-links a:hover { color: var(--wl-sky); }

.wl-friendlinks {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.wl-friendlinks a {
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.wl-friendlinks a:hover { color: var(--wl-sky); }

.wl-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.wl-copy a { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 992px) {
  .wl-route-inner { grid-template-columns: 1fr; gap: 28px; }
  .wl-station-rail { grid-template-columns: repeat(2, 1fr); }
  .wl-station-rail::before { display: none; }
  .wl-pin { margin: 0 0 4px; }
  .wl-twin { grid-template-columns: 1fr; }
  .wl-layout { grid-template-columns: 1fr; }
  .wl-footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .wl-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    background: var(--wl-paper);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 20px 24px;
    gap: 20px;
    transform: translateX(105%);
    transition: transform .28s ease;
    z-index: 95;
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
  }

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

  .wl-nav > ul { flex-direction: column; align-items: stretch; }
  .wl-nav > ul > li > a { border-radius: 12px; padding: 12px 14px; }

  .wl-subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
  }

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

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

  .wl-route { padding: 36px 0 56px; }
  .wl-stations, .wl-milestones, .wl-twin { margin: 32px 0; }
  .wl-station-rail { grid-template-columns: 1fr; }
  .wl-article-list a { grid-template-columns: 1fr; }
  .wl-article-list img { height: 160px; }
  .wl-detail h1 { font-size: 22px; text-align: left; }
  .wl-pagerow { flex-direction: column; }
  .wl-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wl-section-hd { flex-direction: column; align-items: flex-start; }
}
