:root {
  --bg: #f6f7fa;
  --card: #ffffff;
  --ink: #1a2233;
  --sub: #697386;
  --line: #e7eaf0;
  --brand: #2b5aed;
  --t1: #c0261f;
  --t2: #c47717;
  --t3: #5b4bb4;
  --tk: #98a1b3;
  --ok: #0e8a4d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding: 22px;
  line-height: 1.5;
}

.wrap { max-width: 1600px; margin: 0 auto; }

h1 { font-size: 21px; margin-bottom: 4px; font-weight: 700; }

.subline {
  color: var(--sub);
  font-size: 12.5px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.cards { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 130px;
}

.card .n { font-size: 24px; font-weight: 700; }
.card .n.c1 { color: var(--t1); }
.card .n.c2 { color: var(--t2); }
.card .n.c3 { color: var(--t3); }
.card .n.ck { color: var(--tk); }
.card .l { font-size: 12px; color: var(--sub); margin-top: 2px; }

.hintbar {
  background: #eef4ff;
  border: 1px solid #c9d9ff;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: #28418f;
  margin-bottom: 12px;
  line-height: 1.6;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.frow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.frow:last-child { margin-bottom: 0; }

.glabel { font-size: 12.5px; color: var(--sub); font-weight: 600; margin-right: 4px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--sub);
  user-select: none;
}

.chip.on.c1 { background: var(--t1); border-color: var(--t1); color: #fff; font-weight: 600; }
.chip.on.c2 { background: var(--t2); border-color: var(--t2); color: #fff; font-weight: 600; }
.chip.on.c3 { background: var(--t3); border-color: var(--t3); color: #fff; font-weight: 600; }
.chip.on.ca { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.chip.on.cn { background: #0e8a4d; border-color: #0e8a4d; color: #fff; font-weight: 600; }
.chip.on.cs { background: #5a6b85; border-color: #5a6b85; color: #fff; font-weight: 600; }

select, input[type="search"] {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

select:focus, input:focus { border-color: var(--brand); }

.check {
  font-size: 12.5px;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 5px;
}

.countline { font-size: 12.5px; color: var(--sub); margin-left: auto; }
.countline b { color: var(--brand); font-size: 15px; }

.tblwrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 78vh;
}

table { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 1180px; }

th {
  background: #f1f4fa;
  text-align: left;
  padding: 9px 10px;
  font-size: 12px;
  color: #3d4a5f;
  border-bottom: 1.5px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
  cursor: pointer;
}

th:hover { color: var(--brand); }

td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}

tr:hover td { background: #f8faff; }

tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: #eef4ff; }

.nmrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cname { min-width: 150px; max-width: 210px; }
.nm { font-weight: 600; font-size: 13.2px; color: var(--ink); }
.sub { color: var(--sub); font-size: 11.3px; margin-top: 2px; }

.price { font-weight: 700; white-space: nowrap; color: #b3261e; font-size: 13.5px; }
.price-col { white-space: nowrap; }
.unit2 { color: var(--sub); font-weight: 500; font-size: 12.3px; }
.area2 { font-weight: 600; color: #28418f; white-space: nowrap; font-size: 12.3px; }

.tierb {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tierb.t1 { background: #fdebea; color: var(--t1); }
.tierb.t2 { background: #fdf3e1; color: var(--t2); }
.tierb.t3 { background: #ede9fe; color: var(--t3); }
.tierb.tk { background: #f2f3f6; color: var(--tk); }
.tierb.sm { padding: 2px 7px; font-size: 10.8px; }

.stg { display: flex; align-items: center; gap: 3px; margin: 2px 0; flex-wrap: wrap; }
.stg.srank { margin-top: -1px; }
.stgl { font-size: 10px; color: var(--sub); background: #f1f4fa; border-radius: 3px; padding: 1px 4px; font-weight: 700; }
.schname { font-size: 12.3px; font-weight: 600; }

.rankb {
  font-size: 10px;
  color: #7a4fd0;
  background: #f3edff;
  border: 1px solid #d9ccf5;
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 600;
  white-space: nowrap;
}

.rankb.c { color: #1c5fd8; background: #e8f1ff; border-color: #c5d9f7; }

.grad {
  font-size: 10.5px;
  color: var(--ok);
  background: #e8f5ee;
  border-radius: 3px;
  padding: 1px 5px;
  margin-top: 4px;
  display: inline-block;
  font-weight: 600;
}

.grad.dist { color: #b4690e; background: #fff7e6; }

.colx { min-width: 200px; max-width: 300px; }
.hname { font-size: 13.2px; font-weight: 600; color: var(--ink); }
.hnote { font-size: 11px; color: var(--sub); margin-left: 2px; font-weight: 400; }
.mline { font-size: 13.2px; line-height: 1.55; padding: 1px 0; }

.lno {
  display: inline-block;
  min-width: 15px;
  text-align: center;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 3px;
  padding: 0 3px;
  line-height: 1.5;
}

.tline-row { font-size: 13.2px; font-weight: 600; line-height: 1.6; margin-bottom: 3px; }
.tline-row .tline { font-weight: 600; }

.tline-main { font-size: 13.2px; font-weight: 600; line-height: 1.55; }
.tline-sub { font-size: 11.3px; color: var(--sub); line-height: 1.55; margin-top: 2px; }
.tdist { font-size: 11px; color: var(--sub); font-weight: 500; }
.tsep { color: var(--sub); font-weight: 400; }

.card .n.cb { color: var(--brand); }

.cdesc { font-size: 12.3px; line-height: 1.55; }
.cnote { font-size: 11px; color: var(--sub); margin-top: 3px; line-height: 1.5; }

.bbadge {
  background: #e5f0ff;
  color: #1c5fd8;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid #bcd6f7;
}

.bbadge.newb {
  background: #e6f6ee;
  color: #0e8a4d;
  border-color: #b8e6cf;
}

.sale-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.5;
}

.sale-tag.qi {
  background: #fff4e5;
  color: #b45309;
  border: 1px solid #f5d08a;
}

.sale-tag.xian {
  background: #e8f5ee;
  color: #0f766e;
  border: 1px solid #a7dcc8;
}

.wait { color: var(--tk); font-size: 12px; }

.foot {
  color: var(--sub);
  font-size: 11.5px;
  line-height: 1.8;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.foot b { color: var(--ink); }

@media (max-width: 720px) {
  body { padding: 12px; }
  .countline { margin-left: 0; width: 100%; }
}
