* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1f2d3d;
  background: #eef2f7;
  overflow: hidden;
}

.app { display: flex; flex-direction: column; height: 100vh; }

/* 顶部栏 */
.topbar {
  height: 60px; flex: 0 0 60px;
  background: #16304f;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; color: #fff; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 6px; height: 28px; background: #c9a45c; border-radius: 3px; }
.brand-title { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: #9fb3cb; margin-top: 2px; }
.topmeta { display: flex; align-items: center; gap: 18px; font-size: 13px; color: #c7d4e3; }
.badge-demo {
  background: rgba(201,164,92,.18); border: 1px solid #c9a45c; color: #e6c98a;
  padding: 4px 10px; border-radius: 12px; font-size: 12px;
}
.dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#5ad19a; margin-right:6px; }

/* 主体 */
.main { flex: 1; display: flex; min-height: 0; }

/* 左侧面板 */
.panel {
  width: 408px; flex: 0 0 408px;
  background: #fff;
  display: flex; flex-direction: column;
  border-right: 1px solid #dce4ee;
  z-index: 5;
}
.panel-head { padding: 18px 20px 14px; border-bottom: 1px solid #eef1f5; }
.panel-kicker { font-size: 12px; color: #b88a3d; letter-spacing: 2px; margin-bottom: 6px; }
.panel-title { font-size: 23px; font-weight: 700; color: #16304f; }
.panel-sub { font-size: 13px; color: #8493a8; margin-top: 6px; line-height: 1.5; }
.panel-tip { font-size: 12px; color: #a9b5c4; margin-top: 8px; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px 20px 26px; }

.platfilter { display: flex; gap: 8px; margin-bottom: 16px; }
.platbtn {
  flex: 1; padding: 8px 0; text-align: center; font-size: 12px;
  border: 1px solid #d9e2ec; border-radius: 6px; background: #f7f9fc;
  color: #5b6b80; cursor: pointer; transition: .15s;
}
.platbtn.active { background: #16304f; border-color: #16304f; color: #fff; font-weight: 600; }

.sechead {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #8493a8; margin: 4px 0 12px;
}
.sechead::after { content:""; flex:1; height:1px; background:#eef1f5; }

/* 车型卡片 */
.card {
  border: 1px solid #e2e9f1; border-radius: 8px;
  padding: 13px 14px; margin-bottom: 11px; background: #fff;
}
.card-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.cat-name { font-size: 16px; font-weight: 700; color: #1e3a5f; }
.cat-desc { font-size: 11px; color: #9aa8b8; }
.price-line { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.plat-tag {
  width: 34px; flex: 0 0 34px; font-size: 11px; color: #fff;
  text-align: center; padding: 3px 0; border-radius: 3px;
}
.plat-tag.ctrip { background: #2a6fd6; }
.plat-tag.didi { background: #f0932b; }
.plat-tag.shenzhou { background: #d64541; }
.plat-tag.yihai { background: #1f9d76; }
.bar-wrap { flex: 1; position: relative; height: 16px; }
.bar-track { position: absolute; top: 6px; left: 0; right: 0; height: 4px; background: #eef2f7; border-radius: 2px; }
.bar-fill { position: absolute; top: 6px; height: 4px; border-radius: 2px; background: #c9a45c; }
.bar-fill.didi { background: #f0932b; }
.bar-fill.shenzhou { background: #d64541; }
.bar-fill.yihai { background: #1f9d76; }
.price-val { flex: 0 0 112px; text-align: right; font-size: 13px; font-weight: 600; color: #334155; white-space: nowrap; }
.price-val .cur { color: #9aa8b8; font-weight: 400; font-size: 11px; }

/* 区间表 */
.table-wrap { margin-top: 18px; }
.table-scroll { width: 100%; overflow-x: auto; }
table.interval { width: 100%; min-width: 366px; border-collapse: collapse; font-size: 11px; }
table.interval th, table.interval td { padding: 8px 4px; white-space: nowrap; }
table.interval th {
  background: #f4f7fa; color: #5b6b80; font-weight: 600;
  padding: 9px 6px; text-align: left; border-bottom: 1px solid #dce4ee;
}
table.interval td { padding: 9px 6px; border-bottom: 1px solid #eef1f5; color: #475569; }
table.interval td.cat { font-weight: 600; color: #1e3a5f; }
table.interval td.ai { color: #b88a3d; font-weight: 600; }
.ai-note { font-size: 11px; color: #9aa8b8; margin-top: 8px; line-height: 1.6; }

.empty-hint {
  text-align: center; color: #9aa8b8; font-size: 14px;
  padding: 80px 10px; line-height: 2;
}

/* 地图 */
.map-wrap { flex: 1; position: relative; min-width: 0; }
#map { width: 100%; height: 100%; }
.map-legend {
  position: absolute; right: 16px; bottom: 26px; z-index: 3;
  background: rgba(255,255,255,.95); border: 1px solid #dce4ee;
  border-radius: 8px; padding: 11px 14px; font-size: 12px; color: #5b6b80;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.legend-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.legend-title { font-weight: 700; color: #1e3a5f; margin-bottom: 6px; font-size: 12px; }

@media (max-width: 900px) {
  .panel { width: 340px; flex-basis: 340px; }
  .brand-sub { display: none; }
}
