:root {
  --ink: #1c2f2f;
  --ink-2: #3d5555;
  --muted: #6f8585;
  --line: #dbe7e6;
  --bg: #f3f8f7;
  --card: #ffffff;
  --accent: #2f6f6f;
  --accent-2: #4b8f8a;
  --accent-soft: #e4f0ee;
  --gold: #b98a3c;
  --shadow: 0 1px 2px rgba(28, 47, 47, .05), 0 8px 24px -18px rgba(28, 47, 47, .35);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(135deg, #223a3a 0%, #2f5252 55%, #3a6663 100%);
  color: #eaf3f1;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.site-header .inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #8fd6c9;
  box-shadow: 0 0 0 4px rgba(143, 214, 201, .16);
}
.brand small {
  font-weight: 400;
  font-size: 11px;
  color: #a9c6c2;
  margin-left: 4px;
  letter-spacing: 0;
}
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: #cfe2df;
  font-size: 13.5px;
  padding: 7px 13px;
  border-radius: 9px;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, .09); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(143, 214, 201, .18); color: #fff; }

/* ---------- layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 26px 22px 70px; }

.page-title { font-size: 21px; margin: 4px 0 4px; letter-spacing: .3px; }
.page-sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }

/* ---------- hero ---------- */
.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 143, 138, .13), transparent 70%);
}
.avatar {
  width: 82px; height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-soft);
  flex: none;
  background: #dfeae9;
}
.hero h1 { margin: 0 0 4px; font-size: 22px; }
.hero .sign { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.hero .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.hero .meta b { color: var(--accent); font-size: 14px; }
.live-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #e8f4ef;
  color: #2c7a5d;
  border: 1px solid #c6e5d8;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  box-shadow: var(--shadow);
}
.card .k { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.card .v {
  font-size: 23px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.card .u { font-size: 12px; color: var(--muted); margin-left: 3px; font-weight: 400; letter-spacing: 0; }

/* ---------- panels ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
  margin-bottom: 18px;
}
.panel h2 {
  font-size: 15px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .3px;
}
.panel h2::before {
  content: "";
  width: 4px; height: 15px;
  border-radius: 2px;
  background: var(--accent-2);
}
.panel .more { margin-left: auto; font-size: 12.5px; font-weight: 400; }

/* ---------- table ---------- */
.tablebox {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 68vh;
  background: #fff;
}
table { border-collapse: collapse; width: 100%; font-size: 13px; }
thead th {
  position: sticky; top: 0; z-index: 2;
  background: #2f4f4f;
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 10px 10px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
thead th:hover { background: #3a6060; }
thead th.asc::after { content: " ▲"; font-size: 9px; opacity: .9; }
thead th.desc::after { content: " ▼"; font-size: 9px; opacity: .9; }
thead th.nosort { cursor: default; }
thead th.nosort:hover { background: #2f4f4f; }
tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf3f2;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
tbody tr:nth-child(even) { background: #f8fbfb; }
tbody tr:hover { background: var(--accent-soft); }
tbody tr.rowlink { cursor: pointer; }
td.title { text-align: left; max-width: 330px; overflow: hidden; text-overflow: ellipsis; }
td.title a { color: var(--ink); }
td.title a:hover { color: var(--accent); }
.money { color: #1d5f5f; font-weight: 600; }
.bar {
  display: inline-block; height: 6px; border-radius: 3px;
  background: var(--accent-2); vertical-align: middle;
  margin-right: 7px; opacity: .55;
}
tfoot td {
  padding: 10px;
  font-weight: 700;
  background: #eaf3f1;
  border-top: 2px solid #cfe2df;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search], .toolbar select {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-family: inherit;
}
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--accent-2); }
.toolbar .hint { font-size: 12px; color: var(--muted); }

/* ---------- chart ---------- */
.chart-wrap { overflow-x: auto; }
.chart { display: block; }
.chart .grid-line { stroke: #e8f0ef; stroke-width: 1; }
.chart .axis-label { fill: #7d9292; font-size: 10px; }
.chart .bar-rect { fill: #4b8f8a; transition: fill .15s; }
.chart .bar-rect:hover { fill: #2f6f6f; }

/* ---------- list ---------- */
.livelist { list-style: none; margin: 0; padding: 0; }
.livelist li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px dashed #e4eeed;
}
.livelist li:last-child { border-bottom: none; }
.livelist .date {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12.5px;
  width: 78px;
  flex: none;
}
.livelist .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livelist .t a { color: var(--ink); }
.livelist .t a:hover { color: var(--accent); }
.livelist .num { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 92px; text-align: right; flex: none; }
.livelist .num.income { color: #1d5f5f; font-weight: 600; }

/* ---------- detail ---------- */
.detail-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.detail-cover {
  width: 210px; height: 118px; border-radius: 10px; object-fit: cover;
  background: linear-gradient(135deg, #2f4f4f, #4b8f8a); flex: none;
  border: 1px solid var(--line);
}
.detail-title { font-size: 20px; margin: 0 0 8px; line-height: 1.4; }
.detail-meta { color: var(--muted); font-size: 13px; }
.detail-meta span + span::before { content: " · "; color: #b9cac9; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 20px; }
.metric {
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
}
.metric .k { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.metric .v { font-size: 19px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric .v small { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.metric.hl { background: var(--accent-soft); border-color: #cfe4e1; }
.metric.hl .v { color: var(--accent); }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent-2); color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: #275c5c; color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 46px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.site-footer a { color: var(--accent); }

/* ---------- word cloud ---------- */
.wordcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding: 6px 2px 2px;
  line-height: 1.45;
}
.wordcloud a {
  color: var(--accent);
  text-decoration: none;
  padding: 1px 5px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s;
}
.wordcloud a:hover { background: var(--accent-soft); text-decoration: none; }

/* ---------- misc ---------- */
.empty { padding: 40px; text-align: center; color: var(--muted); }
.tag {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px;
  background: #eef5f4; color: #5c7a79; border: 1px solid #dbe7e6; margin-right: 5px;
}
.updated { font-size: 12px; color: var(--muted); }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .hero { flex-direction: column; align-items: flex-start; }
  .site-header .inner { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .nav { margin-left: 0; }
  .container { padding: 18px 14px 60px; }
  .site-footer { padding: 0 14px 40px; }
}
