:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-soft: #f9fafc;
  --text: #172033;
  --muted: #697386;
  --line: #dfe5ee;
  --red: #d03838;
  --green: #167a3a;
  --blue: #2563eb;
  --ink: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: #eef2f8;
  color: var(--text);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 44px;
}

.home-page {
  min-height: calc(100vh - 57px);
  display: grid;
  align-items: center;
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.entry-panel {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  display: grid;
  align-content: end;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.entry-panel:hover {
  border-color: #b8c3d4;
  transform: translateY(-1px);
}

.entry-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.entry-panel strong {
  font-size: 31px;
  line-height: 1.15;
}

.entry-panel span:last-child {
  color: var(--muted);
}

.compact-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--line);
}

.compact-head h1 {
  font-size: 34px;
}

.compact-head .lead {
  margin-top: 8px;
}

.head-date {
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.head-date span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.head-date strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.hero {
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 700;
  color: var(--text);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}

.panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.panel {
  overflow: hidden;
}

.panel h2,
.panel h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  font-size: 17px;
}

.panel-body {
  padding: 15px 16px;
}

.metric {
  padding: 14px;
}

.metric span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  font-size: 24px;
}

.muted {
  color: var(--muted);
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.blue {
  color: var(--blue);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

th {
  color: var(--muted);
  background: var(--panel-soft);
}

.table-wrap {
  overflow-x: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2ff;
  color: #3730a3;
}

.tag.buy {
  background: #fef2f2;
  color: var(--red);
}

.tag.sell {
  background: #eff6ff;
  color: var(--blue);
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.list li:last-child {
  border-bottom: 0;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  h1 {
    font-size: 31px;
  }

  .grid.two,
  .grid.three,
  .metrics,
  .home-entry-grid {
    grid-template-columns: 1fr;
  }

  .home-page {
    align-items: start;
  }

  .entry-panel {
    min-height: 190px;
  }

  .compact-head {
    align-items: stretch;
    flex-direction: column;
  }
}
