:root {
  color-scheme: light;
  --page: #f4f2eb;
  --paper: #fffef9;
  --ink: #241f20;
  --text: #352e2d;
  --muted: #695f59;
  --line: #cdc6bb;
  --rule: #e6e0d6;
  --accent: #ad3324;
  --accent-hover: #81231b;
  --tint: #fbebe4;
  --banner: #211e24;
  --cream: #fff5e7;
  --font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif;
  --digits: Georgia, "Times New Roman", serif;
  --width: 1480px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-block-start: 82px; }
body { margin: 0; color: var(--text); background: var(--page); font: 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(calc(100% - 8vw), var(--width)); margin-inline: auto; }
.icon { width: 1.06rem; height: 1.06rem; flex: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .brand, .today, .stats, .cadence, .tools, .platforms, .actions, .search,
.reload, .board-head, .board-label, .board-foot, .board-time, .expand, .footer { display: flex; align-items: center; }
.mast-inner { min-height: 62px; justify-content: space-between; }
.brand { gap: .7rem; color: var(--ink); font-size: 1.18rem; font-weight: 800; letter-spacing: -.035em; }
.brand img { width: 30px; height: 30px; }
.today { font-size: .86rem; color: var(--muted); gap: .55rem; }
.weekday { margin-inline-start: .8rem; }
.overview {
  position: relative; isolation: isolate; margin-top: 20px; overflow: hidden;
  display: flex; align-items: center; min-height: 198px; padding: 23px clamp(24px,3.5vw,56px);
  background: linear-gradient(105deg, #201f23 0%,#282128 57%,#352428 100%);
  color: var(--cream); border-radius: 6px;
}
.globe { position: absolute; z-index: -1; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; object-position: center 45%; }
.edition { position: relative; }
h1, h2 { min-width: 0; overflow-wrap: break-word; }
h1 { margin: 0; font: 900 clamp(2.7rem,4.7vw,4.3rem)/1.1 var(--serif); letter-spacing: -.045em; }
h1::after { content: ""; display: inline-block; width: .13em; height: .13em; margin-inline-start: .15em; background: #ff7954; }
.stats { list-style: none; padding: 0; margin: 17px 0 11px; gap: 0; }
.stats li { color: #e8dcd5; font-size: .88rem; display: flex; gap: .35rem; align-items: baseline; }
.stats li + li::before { content: ""; height: .9rem; width: 1px; background: #746066; margin: 0 .7rem; transform: skew(-15deg); }
.stats strong { font: 600 1.4rem/1 var(--digits); font-variant-numeric: lining-nums tabular-nums; color: var(--cream); }
.cadence { margin: 0; gap: .4rem; font-size: .8rem; color: #dbccc7; }
.cadence .icon, .board-time .icon { width: .88rem; height: .88rem; }
.divider { width: 3px; height: 3px; background: #c59d8d; border-radius: 50%; margin: 0 .2rem; }
.tools {
  position: sticky; top: 0; z-index: 2; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  background: var(--page); padding: 18px 0 14px; margin-bottom: 4px;
}
.platforms { max-width: 100%; gap: 2px; flex-wrap: wrap; }
.platforms button, .reload, .empty button {
  border: 1px solid transparent; border-radius: 4px; min-height: 37px; padding: .36rem .92rem;
  background: transparent; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.platforms button { color: var(--muted); }
.platforms button:hover, .reload:hover, .empty button:hover { color: var(--accent-hover); background: var(--tint); }
.platforms button[aria-pressed="true"] { color: var(--cream); background: var(--accent); }
.actions { gap: .55rem; }
.search { gap: .5rem; padding: 0 .75rem; border: 1px solid #93887c; border-radius: 4px; background: var(--paper); color: var(--muted); }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.search input { background: transparent; border: 0; outline: 0; width: 10rem; min-width: 0; height: 35px; font-size: .875rem; }
.search input::placeholder { color: var(--muted); }
.reload { gap: .4rem; background: var(--paper); border-color: var(--line); color: var(--ink); }
.reload:disabled { background: var(--rule); color: var(--muted); cursor: wait; border-color: var(--line); }
.feedback { margin: 0; font-size: .86rem; color: var(--muted); }
.feedback:not(:empty) { margin: 0 0 .65rem; }
.boards { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-rows: 1fr; }
.board {
  --platform: #29252c; --platform-tint: #f0edef;
  --foot-height: max(38px, 2.5rem);
  display: flex; flex-direction: column; min-width: 0;
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 5px; overflow: clip; scroll-margin-top: 12px;
}
.board.has-more { padding-bottom: var(--foot-height); }
.board-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
.board-head, .board > .board-foot, .board > .notice { flex: none; }
.board.weibo { --platform: #b74429; --platform-tint: #fcf0e6; }
.board.baidu { --platform: #324bb5; --platform-tint: #edf0ff; }
.board.bilibili { --platform: #a63e65; --platform-tint: #fbeaf1; }
.board.weibo2 { --platform: #a85025; --platform-tint: #fbefdf; }
.board.toutiao { --platform: #b12e33; --platform-tint: #fbeaec; }
.board-head {
  gap: .7rem; padding: 16px 18px; min-height: 66px; border-bottom: 1px solid var(--rule);
  background: linear-gradient(100deg, var(--platform-tint), var(--paper) 84%);
}
.platform-icon {
  width: 35px; height: 35px; flex: none; border-radius: 50%; display: grid;
  place-items: center; background: var(--platform); color: white;
}
.platform-icon img { width: 21px; height: 21px; }
.platform-icon b { font-size: .76rem; letter-spacing: -.07em; }
.board-label { align-items: baseline; flex-wrap: wrap; gap: .3rem .55rem; min-width: 0; }
.board-label h2 { margin: 0; color: var(--ink); font-size: 1.21rem; line-height: 1.3; font-weight: 750; }
.board-label > span, .column-label { color: var(--muted); font-size: .78rem; }
.column-label { margin-left: auto; white-space: nowrap; }
.rows { padding: 0 18px; }
.entry {
  display: grid; grid-template-columns: 2rem minmax(0,1fr) auto; align-items: baseline;
  gap: 8px; padding: 9px 0; min-height: 43px; border-bottom: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 0; }
.entry:focus-visible, .more summary:focus-visible { outline-offset: -3px; }
.entry:hover .item-title { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.rank { font: italic 500 1.04rem/1.15 var(--digits); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.podium .rank { font-weight: 700; font-size: 1.25rem; color: var(--accent); }
.first .rank { font-size: 1.45rem; }
.pin { color: var(--accent); font: 600 .72rem/1.5 var(--font); }
.item-title { font-size: .97rem; line-height: 1.52; overflow-wrap: anywhere; }
.first .item-title { font-weight: 720; color: var(--ink); }
.metric { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; text-align: right; max-width: 6.3rem; overflow-wrap: anywhere; }
.board-foot { gap: .5rem; padding: 9px 18px; height: var(--foot-height); justify-content: space-between; border-top: 1px solid var(--rule); color: var(--muted); font-size: .76rem; }
.board-time { gap: .34rem; font-variant-numeric: tabular-nums; }
.expand { gap: .25rem; color: var(--accent); font-weight: 650; }
.expand .icon { width: .95rem; height: .95rem; }
.more summary { position: absolute; inset: auto 0 0; background: var(--paper); list-style: none; }
/* Extra topics extend the scrollable list without changing the grid's intrinsic row height. */
.more-content { height: 0; }
.searching .more-content { height: auto; }
.searching .has-more { padding-bottom: 0; }
.searching .board-scroll { max-height: 32rem; }
.more summary::-webkit-details-marker, .more .opened, .more[open] .closed, .searching .more summary { display: none; }
.more[open] .opened { display: inline; }
.more[open] .expand .icon { transform: rotate(180deg); }
.more[open] summary { border-bottom: 1px solid var(--rule); }
.more summary:hover { background: var(--tint); }
.notice { margin: 10px 18px 3px; color: #864413; font-size: .84rem; }
.empty { text-align: center; padding: 48px 16px; border: 1px solid var(--line); background: var(--paper); }
.empty h2 { margin: .4rem 0; font-size: 1.22rem; }
.empty p { color: var(--muted); }
.empty button { color: var(--accent); border-color: var(--line); }
.footer { margin-top: 28px; padding: 16px 0 26px; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }
@media (max-width: 1110px) {
  .boards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .wrap { width: 94%; }
  .globe { width: 52%; }
}
@media (max-width: 800px) {
  .tools { gap: 8px; }
  .platforms button { padding-inline: .56rem; }
  .search input { width: 8rem; }
  .overview { min-height: 174px; }
  .board-head { padding: 14px; }
  .rows { padding: 0 14px; }
}
@media (max-width: 675px) {
  html { scroll-padding-block-start: 104px; }
  .wrap { width: calc(100% - 28px); }
  .mast-inner { min-height: 51px; }
  .brand { gap: .45rem; font-size: 1.02rem; }
  .brand img { width: 26px; height: 26px; }
  .today { font-size: .75rem; gap: .35rem; }
  .weekday { display: none; }
  .overview { margin-top: 12px; min-height: 153px; padding: 18px; }
  .globe { width: 52%; object-fit: cover; object-position: 48% center; opacity: .69; }
  .overview::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg,#201f23 38%,rgba(32,31,35,.9) 57%,transparent 83%); }
  h1 { font-size: clamp(2.18rem,8.4vw,3.1rem); }
  .stats { margin: 12px 0 9px; }
  .stats li { font-size: .78rem; gap: .25rem; }
  .stats strong { font-size: 1.1rem; }
  .stats li + li::before { margin-inline: .35rem; }
  .cadence { gap: .25rem; font-size: .72rem; }
  .tools { padding: 10px 0; margin-bottom: 2px; }
  .platforms { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 2px; }
  .platforms button { min-height: 34px; padding: .22rem clamp(.28rem,1.6vw,.68rem); font-size: .86rem; }
  .actions, .search input { width: 100%; }
  .search { flex: 1; min-width: 0; }
  .boards { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .board-head { padding: 12px 14px; min-height: 55px; }
  .board-foot { padding-inline: 14px; }
  .entry { grid-template-columns: 1.95rem minmax(0,1fr) auto; gap: 6px; }
}
