:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #18202f;
  --muted: #667085;
  --line: #e6eaf2;
  --brand: rgb(71, 157, 215);
  --brand-dark: #174b73;
  --brand-deep: #123653;
  --soft: #eef7fd;
  --hot: #d92d20;
  --amber: #b7791f;
  --money: #9a3412;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 32px 24px;
  background: linear-gradient(135deg, #142033, #174b73 58%, rgb(71, 157, 215));
  color: #fff;
}

h1,
h2,
h3,
p {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
  line-height: 1.45;
}

.subtitle {
  margin-top: 10px;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.topbar .eyebrow {
  color: #c8eaff;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-switcher {
  display: inline-flex;
  gap: 8px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.platform-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  box-shadow: none;
}

.platform-tab:hover {
  background: rgba(255, 255, 255, .16);
}

.platform-tab.active {
  background: #fff;
  color: var(--brand-dark);
}

label {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

select,
input,
button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

select,
input {
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

button {
  padding: 0 16px;
  border-color: transparent;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  background: #2c86c2;
}

main {
  display: grid;
  gap: 16px;
  padding: 20px 28px 36px;
}

main[hidden] {
  display: none;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 36, 77, .06);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 22px;
}

.hero p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.cadence-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 18px;
  color: #344054;
  background: #fbfdff;
  font-size: 14px;
  line-height: 1.5;
}

.cadence-note strong {
  color: var(--brand-dark);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 116px);
  gap: 10px;
}

.metric-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
}

.metric-grid span {
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.metric-grid small {
  color: var(--muted);
}

.filters {
  padding: 14px 18px;
}

.filter-row[hidden] {
  display: none;
}

.filter-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: start;
  gap: 12px;
  margin: 10px 0;
}

.period-row {
  align-items: center;
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.filter-row > span {
  color: #98a2b3;
  line-height: 30px;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.period-chip-row {
  flex-wrap: nowrap;
}

.chip {
  height: 30px;
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-weight: 700;
}

.chip:hover {
  background: #e9eef5;
}

.chip.disabled,
.chip:disabled {
  color: #98a2b3;
  background: #f5f7fa;
  cursor: not-allowed;
  opacity: .65;
}

.chip.disabled:hover,
.chip:disabled:hover {
  background: #f5f7fa;
}

.chip.active {
  background: var(--soft);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(71, 157, 215, .28);
}

.period-chip-row .chip {
  min-width: 92px;
  border-radius: 6px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.section-head input {
  width: 320px;
}

#board,
#youwangBoard {
  padding: 14px;
}

.reuse-note {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 6px;
  background: #fff7e6;
  color: #7a4d00;
  font-weight: 700;
  border: 1px solid #ffd591;
}

.group-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 12px;
}

.group-title {
  margin: 0;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 800;
}

.period-inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

.period-inline .chip {
  min-width: 92px;
  border-radius: 6px;
}

.card {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.card-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.card-head p {
  color: var(--muted);
  font-size: 12px;
}

.card-head .status {
  color: var(--brand-dark);
  white-space: nowrap;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
  word-break: break-word;
}

th {
  background: #f8faff;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

tbody tr:hover {
  background: #fbfdff;
}

.commerce-table th:nth-child(1),
.commerce-table td:nth-child(1),
.traffic-table th:nth-child(1),
.traffic-table td:nth-child(1) {
  width: 64px;
}

.commerce-table th:nth-child(2),
.commerce-table td:nth-child(2) {
  width: 28%;
}

.commerce-table th:nth-child(3),
.commerce-table td:nth-child(3) {
  width: 13%;
}

.commerce-table th:nth-child(4),
.commerce-table td:nth-child(4) {
  width: 12%;
}

.commerce-table th:nth-child(5),
.commerce-table td:nth-child(5) {
  width: 21%;
}

.commerce-table th:nth-child(6),
.commerce-table td:nth-child(6),
.commerce-table th:nth-child(7),
.commerce-table td:nth-child(7) {
  width: 8%;
}

.commerce-table th:nth-child(8),
.commerce-table td:nth-child(8) {
  width: 62px;
}

.traffic-table th:nth-child(2),
.traffic-table td:nth-child(2) {
  width: 40%;
}

.traffic-table th:nth-child(3),
.traffic-table td:nth-child(3) {
  width: 16%;
}

.traffic-table th:nth-child(4),
.traffic-table td:nth-child(4) {
  width: 16%;
}

.traffic-table th:nth-child(5),
.traffic-table td:nth-child(5) {
  width: 72px;
}

.youwang-table th:nth-child(1),
.youwang-table td:nth-child(1) {
  width: 64px;
}

.youwang-table th:nth-child(2),
.youwang-table td:nth-child(2) {
  width: 34%;
}

.youwang-table th:nth-child(3),
.youwang-table td:nth-child(3) {
  width: 14%;
}

.youwang-table th:nth-child(4),
.youwang-table td:nth-child(4) {
  width: 13%;
}

.youwang-table th:nth-child(5),
.youwang-table td:nth-child(5) {
  width: 17%;
}

.youwang-table th:nth-child(6),
.youwang-table td:nth-child(6) {
  width: 10%;
}

.youwang-table th:nth-child(7),
.youwang-table td:nth-child(7) {
  width: 64px;
}

.rank-badge {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #f2f4f7;
  color: #475467;
  font-weight: 900;
}

tbody tr:nth-child(-n+3) .rank-badge {
  background: var(--hot);
  color: #fff;
}

.title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.author-name {
  color: #1d2939;
  font-weight: 800;
}

.money {
  color: var(--money);
  font-weight: 900;
}

.metric-list {
  display: grid;
  grid-template-columns: 36px minmax(72px, 1fr);
  gap: 4px 10px;
  max-width: 132px;
  font-variant-numeric: tabular-nums;
}

.metric-list span {
  color: #98a2b3;
  white-space: nowrap;
}

.metric-list b {
  min-width: 64px;
  color: #1d2939;
  text-align: right;
  white-space: nowrap;
  word-break: keep-all;
  font-weight: 800;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 800;
}

a:hover {
  text-decoration: underline;
}

.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.platform-hero {
  min-height: 142px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff7e6;
  color: #7a4d00;
  font-weight: 800;
}

.empty-state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}

.empty-state-grid article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.empty-state-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 15px;
}

.empty-state-grid p {
  color: var(--muted);
  line-height: 1.6;
}

@media print {
  body {
    min-width: 0;
    background: #fff;
  }

  .topbar,
  .filters,
  .platform-switcher,
  #searchInput,
  button {
    display: none;
  }

  main,
  #board {
    padding: 0;
  }

  .panel,
  .card {
    break-inside: avoid;
    box-shadow: none;
    border-radius: 0;
  }
}

