:root { --ink:#1a2830; --muted:#6b777b; --line:#dce5e3; --paper:#f7f9f8; --white:#fff; --teal:#006e6a; --teal-dark:#005451; --coral:#f06b57; --sun:#f3bf52; }
* { box-sizing:border-box; } body { margin:0; color:var(--ink); background:var(--paper); font:14px 'Noto Sans SC',sans-serif; } button,input { font:inherit; } button { cursor:pointer; } .app-shell { min-height:100vh; } .topbar { height:68px; padding:0 max(28px,calc((100vw - 1400px)/2)); display:flex; align-items:center; justify-content:space-between; background:var(--white); border-bottom:1px solid var(--line); } .brand { display:flex; align-items:center; gap:10px; color:var(--ink); font-size:18px; font-weight:700; text-decoration:none; } .brand-mark { display:grid; place-items:center; width:29px; height:29px; color:#fff; font:700 17px Outfit,sans-serif; background:var(--teal); border-radius:7px; } nav { display:flex; gap:30px; height:100%; align-items:center; margin-left:auto; margin-right:34px; } nav a { height:100%; display:flex; align-items:center; color:var(--muted); text-decoration:none; border-bottom:2px solid transparent; } nav a.active { color:var(--teal); font-weight:600; border-bottom-color:var(--teal); } .icon-button,.favorite-button { border:1px solid var(--line); background:#fff; color:var(--ink); } .icon-button { border-radius:50%; width:34px; height:34px; font-size:20px; line-height:1; }
main { max-width:1400px; margin:auto; padding:44px 28px 30px; } .search-section { display:grid; grid-template-columns:minmax(270px,1fr) minmax(380px,1.25fr); gap:24px 70px; align-items:center; margin-bottom:40px; } .eyebrow { margin:0 0 7px; color:#758487; font:600 10px Outfit,sans-serif; letter-spacing:1.4px; text-transform:uppercase; } h1,h2,h3,p { margin-top:0; } h1 { margin-bottom:7px; font-size:30px; letter-spacing:0; } .section-intro > p:last-child { margin:0; color:var(--muted); } .search-control { height:54px; position:relative; display:flex; align-items:center; background:#fff; border:1px solid #c8d6d3; border-radius:7px; box-shadow:0 7px 17px rgba(30,56,54,.05); } .search-control:focus-within { border-color:var(--teal); box-shadow:0 0 0 3px rgba(0,110,106,.1); } .search-icon { margin-left:18px; color:var(--teal); font-size:28px; transform:rotate(-15deg); } input { min-width:0; flex:1; height:100%; border:0; outline:0; padding:0 10px; color:var(--ink); background:transparent; } input::placeholder { color:#91a09e; } .clear-button { width:34px; height:34px; margin-right:8px; border:0; border-radius:50%; background:transparent; color:#889594; font-size:23px; } .clear-button:hover { background:#edf3f1; } .quick-routes { grid-column:2; display:flex; align-items:center; gap:8px; margin-top:-14px; color:var(--muted); font-size:12px; } .quick-routes button { padding:4px 10px; border:1px solid var(--line); border-radius:4px; background:#fff; color:#516263; font-size:12px; } .quick-routes button:hover { color:var(--teal); border-color:var(--teal); }
.content-grid { display:grid; grid-template-columns:316px minmax(0,1fr); gap:22px; align-items:start; } .route-list-panel,.route-detail { background:#fff; border:1px solid var(--line); border-radius:7px; } .route-list-panel { min-height:615px; padding:21px 14px 14px; } .panel-heading,.subheading { display:flex; justify-content:space-between; align-items:flex-start; } .panel-heading { padding:0 7px 15px; border-bottom:1px solid var(--line); } h2 { margin-bottom:0; font-size:19px; } .count { padding:3px 7px; color:var(--teal); background:#e5f1ef; border-radius:3px; font-size:12px; } .route-list { padding-top:9px; } .route-item { width:100%; display:flex; gap:12px; padding:13px 9px; text-align:left; border:1px solid transparent; border-radius:5px; background:transparent; } .route-item:hover { background:#f3f7f6; } .route-item.selected { border-color:#b6d8d3; background:#edf7f5; } .mini-badge,.route-badge { display:grid; place-items:center; color:#fff; background:var(--teal); font-family:Outfit,'Noto Sans SC',sans-serif; font-weight:700; } .mini-badge { flex:0 0 auto; width:46px; height:31px; border-radius:4px; font-size:15px; } .route-item:nth-child(2) .mini-badge { background:#c75d48; } .route-item:nth-child(3) .mini-badge { background:#386b9f; } .route-item-content { min-width:0; } .route-item strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; } .route-item span { display:block; margin-top:4px; color:var(--muted); font-size:11px; } .data-note { display:flex; align-items:center; gap:7px; margin:16px 7px 0; padding-top:15px; border-top:1px solid var(--line); color:#83908f; font-size:11px; } .note-dot { width:6px; height:6px; border-radius:50%; background:var(--sun); }
.route-detail { overflow:hidden; } .route-header { display:flex; justify-content:space-between; align-items:center; padding:25px 29px 20px; } .route-title { display:flex; align-items:center; gap:15px; } .route-badge { width:64px; height:45px; border-radius:5px; font-size:21px; } .route-title h2 { font-size:20px; } .favorite-button { width:36px; height:36px; border-radius:5px; font-size:23px; color:var(--teal); } .favorite-button.saved { color:#fff; background:var(--teal); border-color:var(--teal); } .direction-switch { display:flex; gap:4px; margin:0 29px; padding:4px; background:#eef3f2; border-radius:5px; } .direction-switch button { flex:1; height:33px; border:0; border-radius:4px; background:transparent; color:#607070; font-size:12px; } .direction-switch button.selected { color:var(--teal); background:#fff; box-shadow:0 1px 3px rgba(17,46,44,.11); font-weight:600; } .service-stats { display:grid; grid-template-columns:repeat(4,1fr); margin:21px 29px; padding:15px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); } .service-stats div { padding-left:16px; border-left:1px solid var(--line); } .service-stats div:first-child { padding-left:0; border-left:0; } .service-stats span { display:block; color:var(--muted); font-size:11px; } .service-stats strong { display:block; margin-top:5px; font:600 15px Outfit,'Noto Sans SC',sans-serif; } .detail-body { display:grid; grid-template-columns:minmax(260px,.75fr) minmax(400px,1.25fr); gap:26px; padding:0 29px 30px; } .subheading { align-items:center; margin-bottom:13px; } h3 { margin:0; font-size:15px; } .subheading > span { color:var(--muted); font-size:11px; } .stops-section { min-width:0; } .stops-list { height:372px; margin:0; padding:0 0 0 22px; overflow:auto; list-style:none; scrollbar-width:thin; } .stops-list li { position:relative; min-height:38px; padding:0 8px 12px 16px; border-left:1px solid #bbd2cf; color:#344345; font-size:12px; } .stops-list li::before { content:''; position:absolute; left:-5px; top:3px; width:8px; height:8px; background:#fff; border:2px solid var(--teal); border-radius:50%; } .stops-list li:first-child::before,.stops-list li:last-child::before { left:-7px; top:0; width:12px; height:12px; background:var(--teal); border:2px solid #d6efeb; box-shadow:0 0 0 2px var(--teal); } .stops-list li:last-child { border-left-color:transparent; } .stops-list li.current { color:var(--teal); font-weight:700; } .map-section { min-width:0; } .map-action { padding:5px 9px; border:1px solid var(--line); border-radius:4px; color:var(--teal); background:#fff; font-size:11px; } .route-map { position:relative; height:372px; overflow:hidden; border:1px solid #d7e3df; background:#e9f1ed; border-radius:5px; } .map-grid { position:absolute; inset:0; opacity:.6; background-image:linear-gradient(90deg,rgba(119,151,143,.11) 1px,transparent 1px),linear-gradient(rgba(119,151,143,.11) 1px,transparent 1px); background-size:28px 28px; } .route-map::before,.route-map::after { content:''; position:absolute; background:#d5e2dc; border-radius:99px; opacity:.75; } .route-map::before { width:120%; height:28px; top:51%; left:-10%; transform:rotate(-13deg); } .route-map::after { width:25px; height:120%; top:-10%; left:55%; transform:rotate(32deg); } #route-svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; } #route-svg .route-path { fill:none; stroke:var(--coral); stroke-width:6; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 2px 1px rgba(150,61,45,.14)); } 
#route-svg .map-dot { fill:#fff; stroke:var(--coral); stroke-width:2.5; } #route-svg .map-dot.term { fill:var(--coral); stroke:#fff; stroke-width:2; } #route-svg .map-num { font:700 9px Outfit,sans-serif; fill:#b15341; } #route-svg .map-name { font:500 9.5px 'Noto Sans SC',sans-serif; fill:#42514f; text-shadow:0 1px 0 rgba(255,255,255,.9); }
.map-rect { position:absolute; z-index:0; border-radius:6px; opacity:.22; } .map-rect.rect-a { width:120px; height:84px; left:40px; bottom:38px; background:#aad4c9; } .map-rect.rect-b { width:86px; height:110px; right:46px; top:34px; background:#cfe0b4; transform:rotate(8deg); } .map-rect.rect-c { width:150px; height:64px; right:120px; bottom:24px; background:#b9d4e0; } .map-stop { position:absolute; width:12px; height:12px; z-index:1; background:#fff; border:3px solid var(--coral); border-radius:50%; transform:translate(-50%,-50%); } .map-stop.terminal { width:18px; height:18px; background:var(--coral); border:3px solid #fff; box-shadow:0 0 0 2px var(--coral); } .map-stop span { position:absolute; width:100px; top:13px; left:8px; color:#526362; font-size:10px; white-space:nowrap; text-shadow:0 1px #f5f9f7; } .map-stop:nth-child(3n) span { left:auto; right:8px; text-align:right; top:-18px; } .map-label { position:absolute; z-index:0; color:#90aaa3; font-size:11px; letter-spacing:2px; } .river { top:33px; right:48px; transform:rotate(-8deg); } .city { bottom:33px; left:34px; } .map-legend { position:absolute; z-index:2; bottom:11px; right:11px; display:flex; gap:10px; padding:6px 8px; background:rgba(255,255,255,.9); border-radius:3px; color:#607170; font-size:10px; } .map-legend span { display:flex; align-items:center; gap:4px; } .line-key { width:13px; height:3px; background:var(--coral); border-radius:5px; } .stop-key { width:8px; height:8px; background:#fff; border:2px solid var(--coral); border-radius:50%; } .term-key { width:11px; height:11px; background:var(--coral); border:2px solid #fff; border-radius:50%; }
footer { max-width:1400px; display:flex; justify-content:space-between; gap:20px; margin:0 auto; padding:18px 28px 28px; color:#82908f; font-size:11px; } @media (max-width:900px) { .content-grid,.detail-body { grid-template-columns:1fr; } .route-list-panel { min-height:auto; } .route-list { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; } .route-item { padding:9px; } .route-item span { display:none; } .data-note { display:none; } .detail-body { gap:20px; } .stops-list { height:220px; } } @media (max-width:650px) { .topbar { padding:0 16px; } nav { display:none; } main { padding:28px 16px 20px; } .search-section { grid-template-columns:1fr; } .quick-routes { grid-column:1; margin-top:-10px; } .route-list { grid-template-columns:1fr; } .route-item span { display:block; } .route-header,.service-stats,.detail-body { margin-left:16px; margin-right:16px; padding-left:0; padding-right:0; } .route-header { padding-top:19px; } .direction-switch { margin:0 16px; } .service-stats { grid-template-columns:repeat(2,1fr); gap:15px 0; } .service-stats div:nth-child(3) { padding-left:0; border-left:0; } .route-title h2 { font-size:16px; } footer { display:block; padding:12px 16px 22px; } footer span { display:block; margin-bottom:6px; } }

/* 真实线路数据版 */
:root {
  --panel: #ffffff;
  --teal-soft: #e7f4f1;
  --orange: #ef6a47;
  color-scheme: light;
}

:root.dark {
  --ink: #e8f0ee;
  --muted: #a4b2af;
  --line: #31433f;
  --paper: #101916;
  --white: #17231f;
  --panel: #17231f;
  --teal: #58c8bb;
  --teal-dark: #80d8cf;
  --teal-soft: #213b35;
  color-scheme: dark;
}

body { font-size:16px; line-height:1.5; background:var(--paper); }
.topbar,.route-list-panel,.route-detail,.search-control { background:var(--panel); }
.icon-button,.favorite-button,.quick-routes button,.map-action { background:var(--panel); color:var(--ink); }
.search-section { grid-template-columns:minmax(290px,.9fr) minmax(520px,1.25fr); margin-bottom:30px; }
.section-intro > p:last-child { font-size:14px; }
.section-intro > p strong { color:var(--teal); font:700 16px Outfit,sans-serif; }
.search-tools { display:grid; grid-template-columns:1fr 142px; gap:10px; }
.filter-control { height:54px; display:flex; flex-direction:column; justify-content:center; padding:5px 12px; border:1px solid #c8d6d3; border-radius:7px; background:var(--panel); }
.filter-control span { color:var(--muted); font-size:11px; line-height:1; }
.filter-control select { width:100%; margin-top:4px; border:0; outline:0; color:var(--ink); background:transparent; font-size:13px; }
.quick-routes { grid-column:2; }
.content-grid { grid-template-columns:340px minmax(0,1fr); }
.route-list-panel { position:sticky; top:16px; min-height:0; }
.route-list { max-height:690px; overflow:auto; scrollbar-width:thin; }
.route-item { min-height:64px; align-items:center; }
.route-item strong { font-size:13px; }
.route-item span { font-size:11px; }
.mini-badge { min-width:48px; width:auto; padding:0 7px; }
.route-item:nth-child(n) .mini-badge { background:var(--teal); }
.route-item.selected .mini-badge { background:var(--orange); }
.empty-state { display:flex; flex-direction:column; gap:5px; padding:38px 12px; text-align:center; color:var(--muted); }
.empty-state strong { color:var(--ink); font-size:14px; }
.route-detail { min-width:0; }
.route-header { padding-bottom:18px; }
.route-badge { min-width:64px; width:auto; padding:0 10px; background:var(--orange); }
.direction-switch button { min-height:40px; font-size:14px; }
.direction-switch button[hidden] { display:none; }
.service-stats { margin-bottom:14px; }
.service-stats span { font-size:12px; }
.service-stats strong { font-size:16px; }
.schedule-note { display:flex; align-items:flex-start; gap:18px; margin:0 29px 22px; padding:12px 14px; border:1px solid #f1d7b8; border-radius:6px; color:#6f4a22; background:#fff8ea; font-size:13px; }
.schedule-note[hidden] { display:none; }
.schedule-note strong { flex:0 0 auto; }
.schedule-note span { line-height:1.7; }
:root.dark .schedule-note { color:#f5cca0; background:#352a1c; border-color:#654b2b; }
.detail-body { grid-template-columns:minmax(230px,.62fr) minmax(430px,1.38fr); align-items:start; }
.sub { display:flex; justify-content:space-between; align-items:center; margin-bottom:13px; }
.sub > span { color:var(--muted); font-size:12px; }
.stops-list { height:auto; max-height:none; padding-left:0; overflow:visible; }
.stops-list li { min-height:58px; margin-left:7px; padding:0 5px 16px 26px; border-left:2px solid #c6d8d4; }
.stops-list li::before { left:-7px; top:5px; width:10px; height:10px; }
.stops-list li span,.stops-list li strong { display:block; }
.stops-list li span { margin-bottom:2px; color:var(--muted); font-size:11px; }
.stops-list li strong { font-size:14px; font-weight:600; }
.stops-list li.terminal::before { left:-9px; width:14px; height:14px; }
.stops-list li.more-stops { min-height:42px; border-left-color:transparent; color:var(--muted); }
.stops-list li.more-stops::before { content:'···'; left:-9px; top:-8px; width:auto; height:auto; border:0; color:var(--teal); background:transparent; font-weight:700; }
.route-note { margin:2px 0 14px; padding:10px 12px; border-left:3px solid var(--orange); color:var(--muted); background:var(--paper); font-size:12px; }
.source-card { padding:15px; border:1px solid var(--line); border-radius:6px; background:var(--paper); }
.source-card > span { display:block; color:var(--muted); font-size:11px; }
.source-card strong { display:block; margin:3px 0 6px; font-size:14px; }
.source-card p { margin:0 0 10px; color:var(--muted); font-size:12px; }
.source-card a { color:var(--teal); font-size:12px; font-weight:600; text-decoration:none; }
.map-action { text-decoration:none; }
.route-map { height:520px; background:#dfeae6; }
.route-map::before,.route-map::after { display:none; }
.route-map-canvas { position:absolute; inset:0; width:100%; height:100%; }
.map-status { position:absolute; z-index:3; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:26px; text-align:center; color:#3f5650; background:rgba(239,246,243,.94); }
.map-status[hidden] { display:none; }
.map-status strong { font-size:14px; }
.map-status span:last-child { max-width:360px; color:#6c7c78; font-size:12px; }
.map-status.error { color:#8b3928; background:rgba(255,245,241,.96); }
.map-status.error .map-spinner { display:none; }
.map-note { margin:9px 0 0; padding:9px 11px; border-left:3px solid var(--sun); color:var(--muted); background:var(--paper); font-size:12px; }
.map-note[hidden] { display:none; }
.map-spinner { width:26px; height:26px; border:3px solid #b8d8d2; border-top-color:var(--teal); border-radius:50%; animation:map-spin .8s linear infinite; }
@keyframes map-spin { to { transform:rotate(360deg); } }
:root.dark .map-status { color:#dbe9e6; background:rgba(24,38,33,.95); }
:root.dark .map-status span:last-child { color:#a4b2af; }
:root.dark .map-status.error { color:#ffc3b4; background:rgba(50,30,25,.96); }
.accuracy-banner { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:22px; padding:16px 19px; border:1px solid #eadbbd; border-radius:7px; background:#fffaf0; }
.accuracy-banner > div { display:flex; align-items:flex-start; gap:12px; }
.accuracy-banner p { margin:0; color:#695f4f; font-size:13px; }
.accuracy-banner a { flex:0 0 auto; color:#806016; font-size:13px; font-weight:600; text-decoration:none; }
.accuracy-icon { display:grid; place-items:center; flex:0 0 auto; width:24px; height:24px; border-radius:50%; color:#fff; background:#c79831; font:700 13px Outfit,sans-serif; }
:root.dark .accuracy-banner { background:#2b261b; border-color:#54482c; }
:root.dark .accuracy-banner p,:root.dark .accuracy-banner a { color:#e7d4aa; }
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible { outline:3px solid rgba(0,110,106,.28); outline-offset:2px; }

@media (max-width:1050px) {
  .content-grid { grid-template-columns:290px minmax(0,1fr); }
  .detail-body { grid-template-columns:1fr; }
  .route-map { height:460px; }
}

@media (max-width:900px) {
  .search-section { grid-template-columns:1fr; }
  .search-tools,.quick-routes { grid-column:1; }
  .quick-routes { margin-top:-10px; }
  .route-list-panel { position:static; }
  .route-list { display:grid; max-height:310px; grid-template-columns:repeat(2,1fr); }
  .route-item span { display:block; }
  .data-note { display:flex; }
}

@media (max-width:650px) {
  body { font-size:16px; }
  .search-tools { grid-template-columns:1fr; }
  .filter-control { height:50px; }
  .quick-routes { overflow-x:auto; padding-bottom:4px; white-space:nowrap; }
  .route-list { grid-template-columns:1fr; max-height:300px; }
  .route-header { gap:12px; }
  .route-title { min-width:0; }
  .route-title h2 { overflow:hidden; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
  .route-badge { min-width:54px; height:42px; font-size:17px; }
  .service-stats strong { font-size:14px; }
  .schedule-note { flex-direction:column; gap:4px; margin:0 16px 18px; }
  .detail-body { display:block; }
  .map-section { margin-top:22px; }
  .route-map { height:420px; }
  .accuracy-banner { align-items:flex-start; flex-direction:column; }
}
