:root {
  color-scheme: light;
  --ink: #131820;
  --muted: #7b8491;
  --faint: #aeb6c1;
  --line: #e2e7ed;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --shadow: 0 8px 22px rgba(19, 24, 32, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.app {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 22px;
}

.date-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 248, 251, 0.9);
  backdrop-filter: blur(12px);
}

.date-bar div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.muted,
.date-heading em {
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.date-bar strong {
  font-size: 17px;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select {
  width: 116px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-weight: 700;
}

.date-section {
  display: grid;
  gap: 8px;
}

.date-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 2px;
}

.date-heading div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.date-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.date-heading strong {
  font-size: 24px;
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hot-card {
  position: relative;
  display: grid;
  grid-template-rows: 24px auto minmax(40px, 1fr) 16px;
  gap: 6px;
  min-height: 166px;
  padding: 12px 12px 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.rank {
  position: absolute;
  right: 11px;
  top: 8px;
  color: rgba(19, 24, 32, 0.1);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 40px);
  color: var(--accent);
}

.tag span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  font-size: 12px;
  font-weight: 900;
}

.tag b {
  font-size: 12px;
  white-space: nowrap;
}

.hot-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hot-card p {
  margin: 0;
  color: #4e5967;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.source {
  align-self: end;
  max-width: 100%;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source:hover {
  color: var(--accent);
}

.life {
  --accent: #0f766e;
}

.web {
  --accent: #2563eb;
}

.ai {
  --accent: #7c3aed;
}

.digital {
  --accent: #be123c;
}

.auto {
  --accent: #c2410c;
}

.traffic {
  --accent: #047857;
}

.finance {
  --accent: #b45309;
}

.global {
  --accent: #475569;
}

.default {
  --accent: #334155;
}

@media (max-width: 1240px) {
  .hot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app {
    width: min(100% - 16px, 1480px);
  }

  .date-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .date-heading {
    align-items: start;
    flex-direction: column;
  }

  .hot-grid {
    grid-template-columns: 1fr;
  }
}
