.hot-heading,
.hot-card-header,
.hot-card-brand,
.hot-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hot-update-note {
    color: var(--brand-dark);
    background: var(--mint);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    white-space: nowrap;
}
.hot-summary {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
}
.hot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}
.hot-card {
    display: flex;
    flex-direction: column;
    height: clamp(420px, 70vh, 600px);
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    scroll-margin-top: 25px;
}
.hot-card-header {
    flex-shrink: 0;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
}
.hot-card-brand {
    justify-content: flex-start;
}
.hot-card-header h2 {
    font-size: 17px;
    margin: 0;
    overflow-wrap: anywhere;
}
.hot-badge {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: white;
    font-size: 17px;
    font-weight: 700;
    background: var(--brand);
}
.hot-badge-baidu { background: #315efb; }
.hot-badge-weibo { background: #e65345; }
.hot-badge-zhihu { background: #1772f6; }
.hot-badge-toutiao { background: #d93746; }
.hot-badge-bilibili { background: #d94378; }
.hot-badge-douyin, .hot-badge-kuaishou { background: #bd3049; }
.hot-badge-baidutieba, .hot-badge-hupu { background: #b44a22; }
.hot-badge-ithome, .hot-badge-huxiu { background: #b93636; }
.hot-badge-36kr, .hot-badge-ifanr, .hot-badge-sspai { background: #4a6397; }
.hot-badge-juejin, .hot-badge-csdn { background: #1b69b5; }
.hot-badge-github-trending, .hot-badge-hello-github { background: #374151; font-size: 13px; }
.hot-badge-thepaper, .hot-badge-cls, .hot-badge-wallstcn { background: #2b6583; }
.hot-badge-eastmoney, .hot-badge-10jqka, .hot-badge-smzdm { background: #b85b20; }
.hot-badge-weread, .hot-badge-qq-music { background: #16835d; }
.hot-badge-netease-music { background: #bc363b; }
.hot-badge-steam { background: #233e63; }
.hot-card-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.hot-card-body:hover,
.hot-card-body:focus-within {
    scrollbar-color: #b9c6d8 transparent;
}
.hot-card-body::-webkit-scrollbar {
    width: 6px;
}
.hot-card-body::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: transparent;
}
.hot-card-body:hover::-webkit-scrollbar-thumb,
.hot-card-body:focus-within::-webkit-scrollbar-thumb {
    background: #b9c6d8;
}
.hot-card-body:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}
.hot-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.hot-list a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.hot-list a:hover {
    background: var(--surface);
}
.hot-rank {
    flex: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.hot-list li:nth-child(-n+3) .hot-rank {
    color: #cf3e28;
    font-weight: 750;
}
.hot-card-footer {
    flex-shrink: 0;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}
.hot-stale {
    color: #945b10;
    white-space: nowrap;
}
.hot-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 55px 18px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}
.hot-empty p {
    color: var(--ink);
    font-size: 15px;
    margin: 10px 0 4px;
}
.hot-footnote {
    margin-top: 25px;
    font-size: 13px;
    color: var(--muted);
}
@media (max-width: 1000px) {
    .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hot-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
    .hot-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .hot-card { height: clamp(360px, 65vh, 480px); }
}
@media (hover: none) {
    .hot-card-body { scrollbar-color: #b9c6d8 transparent; }
    .hot-card-body::-webkit-scrollbar-thumb { background: #b9c6d8; }
}
@media (forced-colors: active) {
    .hot-card-body { scrollbar-color: auto; }
}
