.route-main {
  overflow-anchor: none;
  --route-navy: #142331;
  --route-deep: #0d1823;
  --route-ivory: #f3ecdf;
  --route-brass: #d9bd8a;
  --route-turn-gutter: clamp(62px, 6vw, 94px);
}

.route-stage {
  position: relative;
  color: var(--route-ivory);
  background: radial-gradient(ellipse at 72% 45%, #2b3a46 0%, var(--route-navy) 46%, var(--route-deep) 92%);
}

.route-stage .flag-backdrop {
  --flag-shade: #0d1823;
  width: 52%;
  opacity: .89;
  mask-image: linear-gradient(to right, transparent, #000 24%);
}

.route-stage-inner {
  position: relative;
}

.route-main[data-route-ready] .route-stage-inner { width:min(1200px,calc(100% - var(--route-turn-gutter) * 2)); }
.route-turn {
  position:absolute;
  top:50%;
  display:grid;
  place-items:center;
  width:clamp(42px,4vw,56px);
  aspect-ratio:1;
  transform:translateY(-50%);
  color:#f7e4bc;
  background:#151e26d9;
  border:1px solid #dbc293af;
  border-radius:50%;
  box-shadow:inset 0 0 0 3px #f9df9f15,0 4px 13px #070c1666;
}
.route-turn:is(:hover,:focus-visible) { color:#362717;background:#efdfbf; }
.route-turn::before { content:"";width:.54rem;height:.54rem;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:translateX(-2px) rotate(45deg); }
.route-turn-back { left:clamp(10px,2vw,30px); }
.route-turn-back::before { transform:translateX(2px) rotate(-135deg); }
.route-turn-next { right:clamp(10px,2vw,30px); }

@media screen and (prefers-reduced-motion:no-preference) {
  [data-route-ready] .route-index,[data-route-ready] .route-panel:not(.route-cover) .route-actions { transition:opacity .55s ease,transform .65s cubic-bezier(.2,.7,.3,1); }
  [data-route-ready] .route-index:not([data-revealed],:focus-within),[data-route-ready]:not([data-route-scrolled]) .route-panel:not(.route-cover) .route-actions:not(:focus-within) { opacity:0;transform:translateY(9px);pointer-events:none;transition:none;animation:none; }
}

.route-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  min-height: clamp(465px, 64vh, 590px);
  padding: clamp(34px, 6vw, 72px) 0;
}

.route-panel + .route-panel {
  border-top: 1px solid #e9d4ad37;
}

.route-main[data-route-ready] .route-panel {
  border-top: 0;
}

.route-copy {
  min-width: 0;
}

.route-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--route-brass);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
}

.route-date::before {
  width: 29px;
  height: 1px;
  background: currentColor;
  content: "";
  flex: none;
}

.route-copy :is(h1,h2) {
  font: 500 clamp(2.45rem, 5.2vw, 5.15rem) / 1.02 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

[lang="zh-CN"] .route-copy :is(h1,h2) {
  font-size: clamp(2.3rem, 4.95vw, 4.7rem);
  line-height: 1.16;
  letter-spacing: .025em;
}

.route-copy :is(h1,h2):focus {
  outline: none;
}

.route-description {
  max-width: 49ch;
  margin-top: 18px;
  color: #e0ded6;
  line-height: 1.74;
}

.route-documents {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.15rem;
  margin-top: .85rem;
  color: #eddbba;
  font-size: .88rem;
}

.route-documents a {
  padding-block: .24rem;
  text-underline-offset: .25em;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.route-link {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 44px;
  padding: 8px 17px;
  font: 700 .96rem/1.3 var(--serif);
  text-decoration: none;
  border: 1px solid #d9bd8a55;
  border-radius: 11px;
  background: #e9d4ad0d;
  box-shadow: inset 0 1px #ffefd412;
}

.route-link:hover {
  background: #e9d4ad22;
  border-color: #d9bd8a91;
}

.route-primary {
  background: linear-gradient(#f0dfbc, #dfc69c);
  color: #352a19;
  border-color: #ccae7e;
  box-shadow: inset 0 1px #fff8e5a6, 0 3px 9px #080e1633;
}

.route-primary:hover {
  background: linear-gradient(#f7eacb, #e6cca4);
}

.route-back::before,
.route-primary[data-route-step]::after {
  display: block;
  width: .49em;
  height: .49em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.route-back::before {
  transform: rotate(-135deg);
}

.route-figure {
  min-width: 0;
  align-self: center;
}

.route-picture {
  display: grid;
  align-items: center;
  justify-items: center;
  height: clamp(272px, 47vh, 428px);
  overflow: hidden;
  padding: 11px;
  background: #0d1520;
  border: 1px solid #ecd5a860;
  box-shadow: 0 20px 58px #070e17a0;
}

.route-picture img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.route-cover .route-figure {
  width: min(100%, 360px);
  justify-self: center;
}

.route-cover .route-picture {
  height: clamp(315px, 52vh, 470px);
}

.route-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  color: #dbcfb7;
  font-size: .79rem;
  text-shadow: 0 1px 4px #0d1823, 0 0 9px #0d1823;
}

.route-figure figcaption span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.route-index {
  margin-block: 24px 34px;
  padding: clamp(12px, 2.3vw, 24px);
  border: 1px solid #cbb99a;
  border-radius: 15px;
  background: linear-gradient(130deg,#fcf8efec,#eee5d2ed);
  box-shadow: inset 0 0 0 4px #faf4e8, 0 7px 24px #47331c12;
}

.route-index-controls { display:flex; align-items:center; gap:1rem; margin-bottom:.85rem; }
.route-index-controls button {
  min-height: 40px;
  padding: .38em .9em;
  color: #5b4028;
  border: 1px solid #cfbc9d;
  border-radius: 10px;
  background: #fff9ed;
  font: 600 .88rem/1.3 var(--serif);
}
.route-index-controls button:hover { background:#efe2cc; }

.route-index progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 2px;
  flex: 1;
  margin: 0;
  border: 0;
  background: var(--line);
  color: #8b6236;
}

.route-index progress::-webkit-progress-bar { background: var(--line); }
.route-index progress::-webkit-progress-value { background: #8b6236; transition: width .42s ease; }
.route-index progress::-moz-progress-bar { background: #8b6236; }

.route-index ol {
  display: grid;
  grid-template-columns: repeat(var(--route-columns), minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-index li {
  display: flex;
  min-width: 0;
}

.route-index a {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-height: 65px;
  gap: .15rem;
  padding: 9px 11px;
  color: #4c3c2e;
  font: 600 .87rem/1.35 var(--serif);
  text-decoration: none;
  background: #f8f1e3;
  border: 1px solid #d8c9ad;
  border-radius: 9px;
  box-shadow: inset 0 1px #fffdf5;
}

.route-index a:hover,
.route-index a[aria-current="step"] {
  background: #efe2c9;
  color: #4a2e14;
}

.route-index a[aria-current="step"] {
  border-color: #ad8d60;
  box-shadow: inset 0 -2px #b3976c, inset 0 1px #fff7e5;
  font-weight: 700;
}

.route-marker {
  color: #705131;
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

.route-panel.is-entering {
  --route-slide: 21px;
}

.route-panel.is-entering[data-direction="back"] {
  --route-slide: -21px;
}

.route-panel.is-entering .route-picture {
  animation: route-window .63s cubic-bezier(.2,.64,.22,1) both;
}

.route-panel.is-entering .route-picture img {
  animation: route-image .72s cubic-bezier(.2,.64,.22,1) both;
}

.route-panel.is-entering :is(.route-date,h1,h2,.route-description,.route-documents,.route-actions,figcaption) {
  animation: route-text .48s cubic-bezier(.2,.64,.25,1) both;
}

.route-panel.is-entering :is(h1,h2) { animation-delay: .04s; }
.route-panel.is-entering .route-description { animation-delay: .09s; }
.route-panel.is-entering :is(.route-documents,.route-actions,figcaption) { animation-delay: .14s; }

@keyframes route-window {
  from { opacity: .22; transform: translateX(var(--route-slide)); clip-path: inset(1.5% 2%); }
  to { opacity: 1; transform: translateX(0); clip-path: inset(0); }
}

@keyframes route-image {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

@keyframes route-text {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
  .route-index ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .route-panel { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .route-main[data-route-ready] .route-stage-inner { width:min(100% - 34px,680px); }
  .route-main[data-route-ready] .route-panel { padding-bottom:4.3rem; }
  .route-turn { top:auto;bottom:.75rem;transform:none; }
  .route-stage .flag-backdrop { inset: auto 0 0; width: 100%; height: min(52%, 33rem); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
  .route-main:not([data-route-ready]) .flag-backdrop { height: 32rem; inset: 9rem 0 auto; }
  .route-figure { width: min(100%, 500px); }
  .route-picture { height: clamp(215px, 58vw, 360px); }
  .route-cover .route-figure { justify-self: start; width: min(100%, 270px); }
  .route-cover .route-picture { height: clamp(225px, 78vw, 325px); }
  .route-index ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .route-panel.is-entering *, .route-panel.is-entering { animation: none; }
}
