/* TenderWatch - 招标与拿地情报站 */

:root {
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #1b2a3a;
  --ink-2: #33475b;
  --muted: #6c7c8f;
  --line: #e2e8f0;
  --line-strong: #cfd9e4;
  --navy: #0d2a47;
  --navy-2: #15395e;
  --primary: #1c5687;
  --primary-dark: #15456d;
  --primary-soft: #eaf2fa;
  --amber: #c47b12;
  --red: #c0392b;
  --green: #1c7c4a;
  --purple: #6d3bbf;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px -18px rgba(16, 24, 40, .22);
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 100% -8%, #e6effa 0, rgba(230, 239, 250, 0) 62%),
    var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3 { margin: 0; font-weight: 600; }

::selection { background: #cfe3f6; }

/* ---------- 布局 ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 226px;
  flex: 0 0 226px;
  background: linear-gradient(180deg, var(--navy) 0%, #0a2139 100%);
  color: #c9d6e4;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 8px 20px;
  color: #fff;
}
.brand:hover { color: #fff; }

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e3a33d 0%, #c47b12 100%);
  color: #1a1206;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(227, 163, 61, .75);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 15.5px; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 10.5px; color: #8ea5bd; letter-spacing: 1.6px; margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  border-radius: 9px;
  color: #aebfd2;
  font-size: 13.5px;
  letter-spacing: .5px;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #e3a33d;
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 14px 10px 6px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11.5px;
  color: #9fb2c7;
  line-height: 1.5;
}
.sidebar-foot small { color: #71869e; font-size: 10.5px; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fbf7f;
  margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(63, 191, 127, .16);
}

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.crumb { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.crumb-main { font-size: 13px; color: var(--ink-2); font-weight: 600; letter-spacing: .3px; }
.crumb-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-right { display: flex; align-items: center; gap: 12px; }
.badge-local {
  font-size: 11px;
  color: #1c7c4a;
  background: #e8f6ee;
  border: 1px solid #c7e9d6;
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 600;
}
.today { font-size: 12px; color: var(--muted); white-space: nowrap; }
.badge-admin { color: #7a4b06; background: #fdf3df; border-color: #eed9ae; }
.badge-public { color: #2c5f8a; background: #eaf2fa; border-color: #c9ddf0; }

.content { padding: 26px 30px 40px; width: 100%; max-width: 1500px; margin: 0 auto; }

.footer {
  margin-top: auto;
  padding: 18px 30px 24px;
  font-size: 11.5px;
  color: #93a2b3;
  text-align: center;
}

/* ---------- 页头 / 按钮 ---------- */

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.page-head h1 { font-size: 24px; letter-spacing: .2px; line-height: 1.35; }
.page-head .sub { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 37px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .05s ease;
}
.btn:hover { border-color: #a9b8c8; color: var(--ink); background: #fbfcfd; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px -10px rgba(28, 86, 135, .9);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef2f6; color: var(--ink-2); }
.btn-danger { color: #b03a2e; border-color: #ecc9c3; background: #fffafa; }
.btn-danger:hover { background: #fdf0ed; border-color: #dfa79e; color: #922b21; }
.btn-sm { height: 29px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(28, 86, 135, .35);
  outline-offset: 1px;
}

.inline { display: inline; }

/* ---------- 提示 / KPI ---------- */

.flash {
  margin: 16px 30px 0;
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid transparent;
}
.flash-ok { background: #eaf7f0; border-color: #c6e8d5; color: #176b40; }
.flash-warn { background: #fdf6e7; border-color: #f0ddb0; color: #8a5a08; }
.flash-error { background: #fdeeec; border-color: #f2c9c3; color: #9c2f22; }

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fffaf0;
  border: 1px solid #f0e0bd;
  color: #7c5a13;
  padding: 11px 16px;
  border-radius: 11px;
  margin-bottom: 18px;
  font-size: 13px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.kpi {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 19px 15px;
  box-shadow: var(--shadow);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kpi::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f6f9f, #8fb9d9);
  opacity: .75;
}
.kpi:hover { transform: translateY(-2px); border-color: #cbd8e5; color: var(--ink); box-shadow: 0 14px 34px -20px rgba(16, 40, 70, .4); }
.kpi-label { font-size: 12.5px; color: var(--muted); letter-spacing: .3px; }
.kpi-value { font-size: 29px; font-weight: 700; line-height: 1.35; margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.kpi-value .unit { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.kpi-hint { font-size: 11.5px; color: #8a99aa; margin-top: 2px; }
.kpi-alert::after { background: linear-gradient(90deg, #c0392b, #e79a8f); }
.kpi-alert .kpi-value { color: #b03a2e; }

/* ---------- 卡片 / 表格 ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-flush { padding: 0; overflow: hidden; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.card-head h2 { font-size: 15px; letter-spacing: .2px; }
.card-link { font-size: 12px; color: var(--muted); white-space: nowrap; }
.card-link:hover { color: var(--primary); }
.card-divider { height: 1px; background: var(--line); margin: 15px 0 12px; }
.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.subhead a { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.subhead a:hover { color: var(--primary); }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .5px;
  color: var(--muted);
  background: #f8fafc;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f9fbfd; }
.table.compact th, .table.compact td { padding: 9px 12px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.row-title { font-size: 13.5px; line-height: 1.5; }
.row-title a { color: var(--ink); font-weight: 600; }
.row-title a:hover { color: var(--primary); }
.row-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.row-mobile { display: none; }
.th-mobile { display: none; }
.date { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.cell-tag { margin-top: 3px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  vertical-align: 1px;
}
.tag-plain { height: 19px; padding: 0 6px; font-weight: 500; }
.tag-gray { background: #eef2f6; color: #5b6b7c; }
.tag-blue { background: #e8f1fb; color: #1e5f9e; }
.tag-amber { background: #fdf3df; color: #9a6210; }
.tag-purple { background: #f1eafc; color: #6532b3; }
.tag-green { background: #e6f6ec; color: #176b40; }
.tag-red { background: #fdece9; color: #a93226; }
.tag-muted { background: #f2f3f5; color: #8b97a5; }
.tag-dark { background: #e5e9ee; color: #3d4c5c; }

.star { color: #d99a2b; font-size: 11px; margin-left: 3px; }
mark { background: #fff0bf; color: inherit; padding: 0 1px; border-radius: 2px; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

.empty { padding: 46px 22px; text-align: center; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.empty p { font-size: 12.5px; color: var(--muted); margin: 7px auto 15px; max-width: 460px; line-height: 1.7; }

/* ---------- 筛选 ---------- */

.tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.tab {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid transparent;
}
.tab:hover { background: #eaeff5; color: var(--ink-2); }
.tab.active { background: var(--navy); color: #fff; font-weight: 500; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filters .field { width: 142px; }
.field > span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.field > span em { color: #c0392b; font-style: normal; }
.filters .field-q { flex: 1 1 220px; width: auto; min-width: 200px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 37px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  padding: 0 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; padding: 9px 11px; line-height: 1.65; resize: vertical; }
.field input[type="file"] {
  height: auto;
  min-height: 37px;
  padding: 5px 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.field input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #f5f7fa;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: #eaeff5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b4c2d0; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #6b9bc3;
  box-shadow: 0 0 0 3px rgba(28, 86, 135, .1);
  outline: none;
}
.field small { font-size: 11px; color: #8d9aa9; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 37px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.check input { accent-color: var(--primary); width: 15px; height: 15px; }
.filter-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- 分页 ---------- */

.pager { display: flex; align-items: center; gap: 4px; }
.pager a, .pager span {
  min-width: 31px;
  height: 31px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff;
}
.pager a:hover { border-color: #b6c5d4; background: #f8fafc; }
.pager .current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.pager .pager-gap { border: none; background: transparent; color: var(--muted); min-width: 16px; padding: 0; }

/* ---------- 详情 ---------- */

.tag-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 2px 0 17px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 18px; margin: 0; }
.kv > div { min-width: 0; }
.kv dt { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.kv dd { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; word-break: break-word; }
.kv-1 { grid-template-columns: 1fr; gap: 12px; }
.detail-grid .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv dd.path { font-size: 11.5px; color: var(--muted); word-break: break-all; }

.pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
  background: #f8fafc;
  border: 1px solid #edf1f6;
  border-radius: 10px;
  padding: 14px 16px;
}
.link { font-size: 12.5px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  padding: 0 8px;
  background: #fff;
}

/* ---------- 统计条 / 图表 ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}
.stat { padding: 14px 18px; border-left: 1px solid #edf1f6; min-width: 0; }
.stat:first-child { border-left: none; }
.stat-label { font-size: 11.5px; color: var(--muted); }
.stat-value { font-size: 19px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.stat-value .unit { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }

.bars { display: flex; flex-direction: column; gap: 9px; padding-top: 2px; }
.bar-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 34px; gap: 10px; align-items: center; }
.bar-label { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 8px; background: #edf1f6; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2b6f9f, #7fb0d3); }
.bar-value { font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bars-wide .bar-row { grid-template-columns: 104px minmax(0, 1fr) 30px; }

/* ---------- 概览：四城看板 ---------- */

.board-card { margin-bottom: 18px; }
.city-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.city-col { padding: 0 16px; border-left: 1px solid var(--line); min-width: 0; }
.city-col:first-child { border-left: none; padding-left: 0; }
.city-col:last-child { padding-right: 0; }
.city-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.city-name { font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.city-count { font-size: 11px; color: var(--muted); background: #eef2f6; border-radius: 999px; padding: 1px 7px; }
.city-list { min-height: 208px; }
.mini-item {
  display: block;
  padding: 8px 6px;
  border-bottom: 1px dashed #edf1f6;
  color: var(--ink);
  border-radius: 6px;
}
.mini-item:last-child { border-bottom: none; }
.mini-item:hover { background: #f8fafc; color: var(--ink); }
.mini-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.mini-meta .tag { flex: 0 0 auto; }
.mini-sub { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.mini-amount { font-weight: 600; color: var(--ink-2); }
.mini-empty { padding: 16px 6px; font-size: 12px; color: var(--muted); }
.city-more { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.city-more:hover { color: var(--primary); }

/* ---------- 概览：核心房企 ---------- */

#core-developers { margin-bottom: 18px; scroll-margin-top: 80px; }
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 10.5px;
  margin-right: 7px;
}
.dev-link { font-weight: 600; color: var(--ink); }
.dev-link:hover { color: var(--primary); }
.dev-table tfoot td { border-top: 2px solid var(--line); font-weight: 600; background: #f8fafc; }
.dev-bar-cell, .dev-bar-head { width: 140px; }
.dev-bar { height: 7px; background: #eef2f6; border-radius: 999px; overflow: hidden; min-width: 80px; }
.dev-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2b6f9f, #7fb0d3); }
.kpi-gold::after { background: linear-gradient(90deg, #c47b12, #e3a33d); }
.kpi-gold .kpi-value { color: #a8640c; }

/* ---------- 动态列表 ---------- */

.feed { display: flex; flex-direction: column; }
.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 6px;
  border-bottom: 1px solid #eef2f6;
  color: var(--ink);
  border-radius: 6px;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #f8fafc; color: var(--ink); }
.feed-main { min-width: 0; }
.feed-title { font-size: 13px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.feed-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.feed-side { text-align: right; white-space: nowrap; flex: 0 0 auto; }
.compact-feed .feed-item { padding: 7px 4px; }
.compact-feed .feed-title { font-size: 12.5px; }
.feed-amount { font-size: 13px; font-weight: 700; }
.feed-date { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- 表单 ---------- */

.form-card { padding: 21px 22px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-full { grid-column: 1 / -1; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

/* ---------- 设置 / 导入 ---------- */

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 18px;
  align-items: start;
}
.settings-side { display: flex; flex-direction: column; gap: 18px; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.danger-zone { border-color: #ecc9c3; background: #fffbfa; }
.danger-zone h2 { color: #9c2f22; }

.import-grid { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.rules h3 { font-size: 13px; margin-bottom: 7px; color: var(--ink-2); }

.tips { margin: 0; padding-left: 18px; color: #526477; font-size: 12.8px; line-height: 1.95; }
.tips li { margin: 1px 0; }
.tip-box {
  margin-top: 16px;
  background: #eff6fd;
  border-left: 3px solid #4b8fc4;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: #365a78;
}
.tip-box p { margin: 4px 0 0; line-height: 1.7; }

.error-list { margin: 0; padding-left: 18px; color: #a93226; font-size: 12.8px; line-height: 1.9; }

code {
  background: #eef2f6;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
  color: #3d5368;
}

/* ---------- 错误页 ---------- */

.error-page { text-align: center; padding: 54px 24px; max-width: 620px; margin: 40px auto; }
.error-code {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 50%;
  background: #fdece9; color: #b03a2e;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700;
}
.error-page h1 { font-size: 20px; margin-bottom: 8px; }
.error-page p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.error-page .button-row { justify-content: center; }

/* ---------- 响应式 ---------- */

@media (max-width: 820px) {
  .list-table { table-layout: fixed; }
  .list-table .col-region, .list-table .col-category, .list-table .col-budget,
  .list-table .col-status, .list-table .col-actions, .list-table .col-date,
  .list-table .col-city, .list-table .col-developer, .list-table .col-use,
  .list-table .col-build, .list-table .col-floor, .list-table .col-premium { display: none; }
  .list-table .row-mobile { display: block; }
  .list-table .hide-mobile { display: none; }
  .list-table .col-deadline { width: 80px; }
  .list-table .col-price { width: 86px; }
  .list-table th, .list-table td { padding-left: 10px; padding-right: 10px; }
  .list-table .row-title { font-size: 13px; }
  .th-full { display: none; }
  .th-mobile { display: inline; }
}

@media (max-width: 1100px) {
  .city-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-col { padding: 0 14px; }
  .city-col:nth-child(odd) { border-left: none; padding-left: 0; }
  .city-col:nth-child(n+3) {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 14px;
  }
  .city-list { min-height: 0; }
}

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: span 1; }
  .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: none; }
}

@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px;
    gap: 6px;
  }
  .brand { padding: 0 10px 0 0; flex: 0 0 auto; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; font-size: 17px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 13.5px; }
  .nav { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; margin: 0; gap: 2px; }
  .nav-item { padding: 7px 11px; font-size: 12.5px; white-space: nowrap; }
  .nav-item.active::before { display: none; }
  .sidebar-foot { display: none; }
  .topbar { padding: 0 18px; height: 54px; flex-basis: 54px; }
  .today { display: none; }
  .content { padding: 18px 18px 30px; }
  .flash { margin: 12px 18px 0; }
  .footer { padding: 14px 18px 20px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .page-head { flex-direction: column; gap: 12px; }
  .page-head h1 { font-size: 21px; }
  .actions { justify-content: flex-start; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { gap: 9px; }
  .filters .field { width: calc(50% - 5px); }
  .filters .field-q { width: 100%; flex-basis: 100%; }
  .filter-actions { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 1px solid #edf1f6; }
  .stat:nth-child(odd) { border-left: none; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2, .form-grid .span-full { grid-column: 1 / -1; }
  .kv, .detail-grid .kv { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 19px; }
  .actions .btn { height: 34px; padding: 0 11px; font-size: 12.5px; }
  .notice { flex-direction: column; align-items: flex-start; }
  .city-board { grid-template-columns: minmax(0, 1fr); }
  .city-col { border-left: none; padding: 0; }
  .city-col + .city-col {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
  }
  .dev-bar-cell, .dev-bar-head { display: none; }
  .dev-table th:nth-child(4), .dev-table td:nth-child(4),
  .dev-table th:nth-child(5), .dev-table td:nth-child(5) { display: none; }
  .dev-table .rank { display: none; }
}

@media print {
  .sidebar, .topbar, .footer, .actions, .filters, .pager, .flash, .notice { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; }
  .card { box-shadow: none; border-color: #ddd; }
}

/* ---------- 管理员登录 ---------- */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}
.login-wrap { width: 100%; max-width: 430px; }
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.login-brand .brand-text strong { color: var(--ink); }
.login-brand .brand-text small { color: var(--muted); letter-spacing: .5px; }
.login-card { padding: 28px; }
.login-card h1 { font-size: 21px; margin-bottom: 6px; }
.login-card > p { margin: 0 0 18px; font-size: 13px; }
.login-card .field { margin-bottom: 16px; }
.login-card .flash { margin: 0 0 16px; }
.login-actions { margin-top: 4px; }
.login-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 16px; }
