[hidden] { display: none !important; }
* { box-sizing: border-box; }
:root { --blue: #0033cc; --outline: #2255dd; --background: #f0f4ff; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--background);
  color: var(--blue);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

main {
  min-width: 0;
  width: min(100%, 900px);
  padding: 40px 20px;
  padding: max(40px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
           max(40px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  text-align: center;
}
h1 {
  margin: 0 0 32px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .25em;
  text-shadow: 2px 2px rgb(0 51 204 / 15%);
}

#routes {
  display: grid;
  gap: 16px;
  padding: 24px 20px;
  border: 2px dashed #4488ff;
  border-radius: 12px;
  background: rgb(255 255 255 / 60%);
}

.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px 14px 24px;
  border: 2px solid var(--outline);
  border-radius: 40px;
  background: #fff;
  color: var(--blue);
  text-align: left;
  text-decoration: none;
}

.route-label, .route-meta { display: flex; align-items: center; }
.route-label { gap: 10px; font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.route-icon { font: 1.2rem/1 "Segoe UI Symbol", sans-serif; }
.route-meta { flex: none; gap: 8px; }
.route-timing {
  min-inline-size: 4.5em;
  color: #52627a;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.route-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
}

.route-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .route[href]:hover { background: #e8f0ff; border-color: var(--blue); }
}

@media (max-width: 360px) {
  #routes { padding-inline: 14px; }
  .route { padding-inline: 12px; }
  .route-label { gap: 6px; font-size: 1rem; }
  .route-meta { gap: 6px; }
}

.route:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#status:not(:empty) { margin-top: 16px; color: #444; font-size: .875rem; }
footer { margin-top: 36px; }
@media (orientation: landscape) and (max-height: 500px) {
  main {
    padding-block: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-bottom));
  }
  h1 { margin-bottom: 16px; }
  #routes { gap: 8px; padding-block: 12px; }
  .route { padding-block: 6px; }
  footer { margin-top: 18px; }
}
.browser-warn { margin: 0 0 6px; color: #b2250b; font-size: clamp(17px, 2.1vw, 21px); font-weight: 700; }
.browser-tip { margin: 0 0 12px; color: #444; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.55; }
.feedback:disabled {
  padding: 6px 18px;
  border: 1px solid #cc0;
  border-radius: 4px;
  background: #ff0;
  color: #000;
  opacity: 1;
  font: 700 clamp(18px, 2.3vw, 22px) "Microsoft YaHei", "PingFang SC", sans-serif;
}

.browser-option {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
  white-space: nowrap;
}
.browser-option svg { display: block; width: 1.1em; height: 1.1em; flex: none; }
.route-timing.is-measured { color: #087527; font-weight: 800; }

.brand-logo { display: block; width: auto; height: clamp(68px, 14.5vw, 100px); max-width: 100%; margin-inline: auto; object-fit: contain; }
