:root {
  --gold: #b77a2a;
  --gold-dark: #79501f;
  --gold-light: #f6d994;
  --ink: #241c15;
  --muted: #6f665e;
  --line: rgba(171, 117, 42, .34);
  --glass: rgba(255, 255, 255, .82);
  --shadow: 0 12px 32px rgba(94, 66, 29, .15), 0 2px 7px rgba(111, 72, 20, .12);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #e9e5df; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #ece8e1;
}

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100%, 750px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 22px max(42px, env(safe-area-inset-bottom));
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #f8f5f0 url("images/bg-main.png") top center / 100% auto no-repeat;
  box-shadow: 0 0 55px rgba(57, 46, 34, .22);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.28) 24%, rgba(255,255,255,.64) 48%, rgba(250,247,242,.90) 100%);
}

.brand-header { position: relative; min-height: 355px; text-align: center; }

.brand-logo {
  width: min(70%, 500px);
  height: auto;
  margin-top: 12px;
  filter: drop-shadow(0 5px 5px rgba(94, 55, 14, .24));
}

.top-note, .safety-mark {
  position: absolute;
  top: 0;
  color: #3d342a;
  font-family: "STSong", "SimSun", serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.top-note { left: 2px; text-align: left; }
.safety-mark { right: 2px; text-align: center; }
.top-note-en { display: block; margin-top: 5px; font: 9px/1.25 Arial, sans-serif; letter-spacing: .05em; color: #756556; }
.crown { display: block; color: var(--gold); font-size: 22px; line-height: 1; margin-bottom: 5px; }

.official-note {
  margin: 20px 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  letter-spacing: .22em;
  white-space: nowrap;
}

.official-note span, footer p span {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.official-note span:last-child, footer p span:last-child { transform: rotate(180deg); }

.brand-header h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(30px, 6.4vw, 48px);
  line-height: 1.45;
  letter-spacing: .10em;
  font-weight: 700;
  color: #9a641e;
  text-shadow: 0 1px 0 #fff, 0 4px 15px rgba(129, 78, 20, .13);
}

main { display: grid; gap: 14px; }

.notice-bar, .route-card, .benefits, .tips-card {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.notice-bar {
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid rgba(186, 130, 51, .48);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 36px 1fr 16px;
  align-items: center;
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 4px 16px rgba(89, 62, 27, .12), inset 0 1px 0 #fff;
}

.notice-bar p { margin: 0; font-size: 14px; line-height: 1.45; }
.notice-icon { width: 28px; height: 28px; color: var(--gold); }
.notice-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.notice-arrow { font: 38px/1 serif; color: var(--gold); }

.routes { display: grid; gap: 14px; }

.route-card {
  position: relative;
  min-height: 110px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(184, 128, 48, .38);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(252,249,243,.72));
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  overflow: hidden;
}

.route-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 44%, rgba(255,255,255,.82) 45%, transparent 56%);
  transform: translateX(-100%);
  transition: transform .7s ease;
}

.route-card:focus-within::after, .route-card:hover::after { transform: translateX(100%); }

.route-card--featured {
  min-height: 138px;
  grid-template-columns: 112px minmax(0, 1fr) 190px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(253,248,238,.80));
}

.recommend {
  position: absolute;
  top: 10px;
  left: -33px;
  width: 120px;
  padding: 7px 0;
  transform: rotate(-45deg);
  color: white;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  background: linear-gradient(#d79c38, #8d5819);
  box-shadow: 0 3px 8px rgba(94, 56, 14, .24);
}

.route-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(182, 125, 46, .28);
  border-radius: 22px;
  color: #9d651f;
  background: radial-gradient(circle at 35% 28%, #fffdf3 0 18%, #f6d78a 55%, #98601e 100%);
  box-shadow: inset 0 2px 4px #fff, 0 8px 18px rgba(112, 70, 18, .18);
}

.route-card--featured .route-icon { width: 96px; height: 96px; border-radius: 50%; }
.route-icon svg { width: 58%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 #fff); }
.route-icon.globe svg { width: 70%; }

.route-copy { position: relative; z-index: 1; min-width: 0; }
.route-copy h2 { margin: 0 0 7px; font-size: 25px; line-height: 1.2; letter-spacing: .03em; }
.route-copy p { margin: 0; color: #4f473f; font-size: 14px; line-height: 1.55; }
.route-card--featured .route-copy h2 { font-size: 31px; }

.route-action { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: stretch; }
.status { justify-self: center; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.status i { width: 12px; height: 12px; border-radius: 50%; background: #10bf66; box-shadow: 0 0 10px rgba(16,191,102,.55); }

.route-action button {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #b67d2f;
  border-radius: 999px;
  color: #3b240f;
  font: 700 18px/1 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .06em;
  background: linear-gradient(180deg, #fff8d8 0%, #f3ca72 62%, #d8a64c 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.92), 0 5px 12px rgba(118, 75, 18, .22);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.route-card--featured .route-action button { color: #fff; background: linear-gradient(180deg, #c89549, #8c591e); }
.route-action button span { font-size: 26px; vertical-align: -2px; }
.route-action button:active { transform: translateY(2px) scale(.99); filter: brightness(.97); }
.route-action--single { align-self: center; }

.route-number {
  position: absolute;
  right: 205px;
  bottom: 5px;
  z-index: 0;
  color: rgba(126, 102, 75, .10);
  font: italic 700 52px/1 Arial, sans-serif;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
  padding: 16px 10px;
  border: 1px solid rgba(184, 128, 48, .24);
  border-radius: 22px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}

.benefits > div, .favorite-btn {
  min-height: 58px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-right: 1px solid rgba(160, 116, 56, .22);
  color: var(--ink);
  background: transparent;
}

.benefits > :last-child { border-right: 0; }
.benefits svg { width: 34px; height: 34px; color: #bd7e25; fill: none; stroke: currentColor; stroke-width: 1.8; flex: 0 0 auto; }
.benefits p { margin: 0; text-align: left; }
.benefits strong, .benefits span { display: block; }
.benefits strong { font-size: 14px; }
.benefits p span, .favorite-btn small { margin-top: 4px; color: #6d6258; font-size: 11px; white-space: nowrap; }
.favorite-btn { cursor: pointer; font-family: inherit; }
.favorite-btn > span { color: #c7862d; font-size: 37px; filter: drop-shadow(0 2px 2px rgba(97,65,20,.18)); }

.tips-card {
  padding: 18px;
  border: 1px solid rgba(184, 128, 48, .20);
  border-radius: 22px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}

.tips-card h2 { margin: 0 0 14px; font-size: 15px; }
.browser-group { padding-right: 20px; border-right: 1px solid rgba(160, 116, 56, .22); }
.browser-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.browser-list > div { display: grid; justify-items: center; text-align: center; }
.browser-list p { margin: 6px 0 0; font-size: 12px; }
.browser-list small { display: block; margin-top: 2px; color: #6d6258; font-size: 9px; }
.browser {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(65, 48, 28, .15));
}
.tips-copy h2 span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 13px/1 serif; }
.tips-copy ol { margin: 0; padding-left: 20px; color: #4e463e; font-size: 12px; line-height: 1.75; }

footer { padding: 28px 0 0; text-align: center; }
footer p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; }
footer p span { width: 40px; }
footer small { display: block; margin-top: 6px; color: #8a7a69; font: 9px/1.4 Arial, sans-serif; letter-spacing: .22em; }
footer em { display: block; margin-top: 18px; color: #9b6b30; font-family: "STKaiti", "KaiTi", serif; font-size: 17px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: rgba(41, 31, 20, .92);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 610px) {
  .page-shell { padding-inline: 12px; }
  .brand-header { min-height: 310px; }
  .brand-logo { width: 66%; margin-top: 28px; }
  .top-note, .safety-mark { font-size: 12px; }
  .top-note-en { font-size: 7px; }
  .official-note { margin-top: 22px; font-size: 13px; gap: 7px; letter-spacing: .10em; }
  .official-note span { width: 24px; }
  .brand-header h1 { font-size: clamp(28px, 8.5vw, 40px); }
  .notice-bar { grid-template-columns: 30px 1fr 10px; padding: 9px 12px; border-radius: 18px; }
  .notice-bar p { font-size: 12px; }
  .route-card, .route-card--featured { min-height: 98px; padding: 13px 12px; grid-template-columns: 62px minmax(0, 1fr) 112px; gap: 9px; border-radius: 18px; }
  .route-card--featured { min-height: 118px; }
  .route-icon, .route-card--featured .route-icon { width: 56px; height: 56px; border-radius: 17px; }
  .route-card--featured .route-icon { width: 62px; height: 62px; border-radius: 50%; }
  .route-copy h2, .route-card--featured .route-copy h2 { margin-bottom: 5px; font-size: 18px; }
  .route-copy p { font-size: 11px; line-height: 1.45; }
  .route-action { gap: 5px; }
  .status { font-size: 11px; }
  .status i { width: 9px; height: 9px; }
  .route-action button { min-height: 42px; padding: 0 10px; font-size: 14px; }
  .route-action button span { font-size: 20px; }
  .route-number { right: 126px; font-size: 38px; }
  .recommend { top: 7px; left: -39px; width: 112px; padding: 5px 0; font-size: 11px; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .benefits > div:nth-child(2) { border-right: 0; }
  .benefits > div:nth-child(-n+2) { padding-bottom: 10px; border-bottom: 1px solid rgba(160,116,56,.18); }
  .benefits svg { width: 29px; }
  .tips-card { grid-template-columns: 1fr; gap: 18px; }
  .browser-group { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid rgba(160,116,56,.18); }
  footer p { font-size: 11px; gap: 5px; }
  footer p span { width: 18px; }
}

@media (max-width: 375px) {
  .page-shell { padding-inline: 8px; }
  .brand-header { min-height: 285px; }
  .brand-logo { width: 64%; }
  .route-card, .route-card--featured { grid-template-columns: 52px minmax(0, 1fr) 96px; gap: 7px; }
  .route-icon, .route-card--featured .route-icon { width: 49px; height: 49px; }
  .route-copy h2, .route-card--featured .route-copy h2 { font-size: 16px; }
  .route-copy p { font-size: 10px; }
  .route-action button { font-size: 12px; }
  .route-number { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
