:root{
  --bg:#f4f4f4;
  --panel:#ffffff;
  --muted:#8a8f98;
  --text:#1e2329;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius:18px;
  --red:#ef4444;
  --blue:#2563eb;
  --green:#16a34a;
  --black:#111827;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC","Microsoft YaHei", Arial;
  color:var(--text);
  background:var(--bg);
}

.stage{min-height:100%; display:flex; align-items:center; justify-content:center; padding:16px;}
.card{
  width:min(980px, 100%);
  background:var(--panel);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 420px 1fr;
  min-height:560px;
}

.poster{
  background: linear-gradient(180deg, #ff4b4b 0%, #d93535 60%, #cf2e2e 100%);
  position:relative;
  padding:22px;
}
.poster__inner{height:100%; display:flex; flex-direction:column; justify-content:space-between;}
.poster__frame{
  background:rgba(255,255,255,.98);
  border-radius:14px;
  padding:18px;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.35);
  display:flex; align-items:center; justify-content:center;
  min-height:320px;
}
.logoBox{width:100%; height:100%; display:flex; align-items:center; justify-content:center;}
.logoBox__img{max-width:78%; height:auto; display:block;}

.poster__footer{padding:10px 6px 0; color:#fff; text-align:center;}
.poster__footerTitle{font-size:22px; font-weight:900; letter-spacing:1px;}
.poster__footerSub{margin-top:6px; font-size:12px; opacity:.92;}

.panel{padding:26px 30px; display:flex; flex-direction:column;}
.h2{margin:0; font-size:18px; font-weight:900;}
.muted{margin:8px 0 14px; color:var(--muted); font-size:12px;}

.searchRow{
  display:flex;
  width:100%;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:#f7f8fb;
}
.input{
  flex:1;
  border:none;
  outline:none;
  padding:12px 14px;
  background:transparent;
  font-size:13px;
}
.btn{
  border:none;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
}
.btn img{width:16px; height:16px}
.btn--search{background:var(--red); color:#fff; padding:10px 14px; min-width:96px; border-radius:0;}
.btn--ghost{
  background:#fff;
  border:1px solid rgba(239,68,68,.45);
  color:var(--red);
  padding:10px 14px;
}

.btn--androidSmall{background:#18b35d; color:#fff; padding:10px 14px; border-radius:999px;}
.btn--iosSmall{background:#111827; color:#fff; padding:10px 14px; border-radius:999px;}

.hint{margin:10px 2px 0; font-size:12px; color:#6b7280; min-height:18px;}
.hint.is-error{color:#b91c1c;}
.hint.is-ok{color:#166534;}

.emptyState{
  height:210px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#9aa0a6;
  gap:10px;
}
.emptyState__icon img{width:48px; height:48px; opacity:.55}
.emptyState__text{font-size:12px}

.resultWrap{margin-top:8px;}
.is-hidden{display:none;}

.resultTitle{
  display:flex; align-items:center; gap:8px;
  color:var(--red);
  font-weight:1000;
  margin:10px 0 10px;
}
.resultTitle img{width:14px; height:14px}

.resultGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.resultCol{
  border-top:1px solid rgba(0,0,0,.06);
  padding-top:10px;
}
.resultCol__head{
  display:flex; align-items:center; gap:8px;
  font-weight:1000;
  color:#111827;
  margin:6px 0 10px;
  font-size:13px;
}
.resultCol__head img{width:16px; height:16px; opacity:.9}

.routes{display:flex; flex-direction:column; gap:10px;}

.routeCard{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.03);
  position:relative;
}
.routeCard:before{
  content:"";
  position:absolute;
  left:0; top:10px; bottom:10px;
  width:4px;
  border-radius:999px;
  background:var(--blue);
}
.routeLeft{padding-left:8px; display:flex; flex-direction:column; gap:6px;}
.routeName{font-weight:1000; font-size:12px;}
.routeTag{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  background:var(--blue);
  color:#fff;
  width:max-content;
}
.routeRight{text-align:right; display:flex; flex-direction:column; gap:6px; align-items:flex-end;}
.routeMs{font-size:18px; font-weight:1000; color:var(--blue); line-height:1;}
.routeUnit{font-size:10px; color:var(--muted); margin-top:2px;}
.routeBtn{
  background:#111827;
  color:#fff;
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
  border:none;
  cursor:pointer;
}
.badge{
  font-size:10px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  color:#374151;
  background:#fff;
}

.infoCard{
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  padding:12px;
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.03);
}
.infoRow{display:flex; justify-content:space-between; gap:10px; padding:6px 0; font-size:12px;}
.infoLabel{color:#6b7280; font-weight:800;}
.infoValue{color:#111827; font-weight:900; text-align:right; max-width:70%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.divider{height:1px; background:rgba(0,0,0,.06); margin:16px 0;}

.downloadBar{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.downloadBar__title{font-weight:1000; color:#111827; font-size:12px;}
.downloadBar__btns{display:flex; gap:10px; flex-wrap:wrap;}
.footnote{margin-top:12px; color:#9aa0a6; font-size:12px; line-height:1.6;}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}

@media (max-width: 900px){
  .card{grid-template-columns:1fr; min-height:auto}
  .poster{padding:18px}
  .poster__frame{min-height:260px}
  .panel{padding:20px}
  .resultGrid{grid-template-columns:1fr}
  .btn--search{border-radius:0; min-width:86px}
}
