.bg-dot-pattern {
  background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
  background-size: 20px 20px;
}

.site-shell {
  width: min(1760px, calc(100vw - clamp(24px, 3.2vw, 88px)));
  margin-inline: auto;
}

.site-shell--article {
  width: min(1640px, calc(100vw - clamp(24px, 3.2vw, 88px)));
  margin-inline: auto;
}

@media (max-width: 767px) {
  .site-shell,
  .site-shell--article {
    width: calc(100vw - 24px);
  }
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.article-content h2 {
  font-size: 1.46rem;
  font-weight: 700;
  margin-top: 2.8rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.article-content p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 2;
  color: #475569;
}

.article-content ul,
.article-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1.2rem;
  color: #475569;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.8rem;
  line-height: 1.9;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.875rem;
}

.article-content th,
.article-content td {
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-content th {
  background-color: #f8fafc;
  font-weight: 500;
  color: #475569;
}

.article-content blockquote {
  border-left: 4px solid #2563eb;
  background-color: #eff6ff;
  padding: 1.25rem 1.5rem;
  border-radius: 0 1rem 1rem 0;
  margin: 1.5rem 0;
  color: #334155;
}

.article-content code {
  background: #eff6ff;
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  color: #1d4ed8;
}

.article-content a {
  color: #2563eb;
}

.article-content h1,
.article-content h3 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.95rem;
}

.article-content h1 {
  font-size: 1.875rem;
}

.article-content h3 {
  font-size: 1.22rem;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content pre {
  overflow-x: auto;
  border-radius: 1rem;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.article-content hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.article-summary-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hot-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(245, 208, 223, 0.28);
  background:
    radial-gradient(circle at top left, rgba(133, 77, 84, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(104, 54, 62, 0.22), transparent 32%),
    linear-gradient(180deg, #2a1d20 0%, #201719 100%);
  box-shadow:
    0 28px 72px rgba(27, 17, 21, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hot-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%);
}

.hot-tab {
  display: inline-flex;
  min-width: 68px;
  justify-content: center;
  border-radius: 9999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 235, 239, 0.72);
  transition: all 160ms ease;
}

.hot-tab:hover {
  color: #fff;
}

.hot-tab.is-active {
  background: rgba(241, 100, 87, 0.16);
  color: #ff8c81;
}

.hot-card-panel {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hot-card-inner {
  border-radius: 22px;
  background: rgba(38, 33, 37, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hot-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.hot-scroll::-webkit-scrollbar {
  width: 8px;
}

.hot-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.hot-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hot-card-item {
  border-radius: 16px;
  transition: background-color 160ms ease;
}

.hot-card-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hot-rank-chip {
  display: inline-flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 245, 247, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.hot-bullet {
  position: absolute;
  left: -17px;
  top: 9px;
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.hot-waterfall {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

@media (min-width: 1680px) {
  .hot-waterfall {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}

.hot-masonry-card {
  break-inside: auto;
  page-break-inside: auto;
}
