/* ============ 热榜雷达 · 主题变量 ============ */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 9px;
  --accent-1: #ff6a3d;
  --accent-2: #ff2d55;
  --grad-hot: linear-gradient(135deg, #ff8a3d 0%, #ff3d5a 60%, #ff2d78 100%);
  --grad-cool: linear-gradient(135deg, #4f7cff, #7c5cff);
  --gold: #ffd666;
  --shadow-1: 0 10px 30px -12px rgba(0, 0, 0, .45);
  --shadow-2: 0 18px 50px -18px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.22, .8, .28, 1);
}

html[data-theme="dark"] {
  --bg: #0a0c14;
  --bg-glow-1: rgba(255, 106, 61, .10);
  --bg-glow-2: rgba(79, 124, 255, .12);
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .10);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef0f6;
  --text-2: #a6adbd;
  --text-3: #6b7280;
  --rank-1: #ff4d5a;
  --rank-2: #ff9c33;
  --rank-3: #ffd666;
  --rank-n: rgba(255, 255, 255, .28);
  --heat-track: rgba(255, 255, 255, .07);
  --skeleton: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.05) 75%);
  --hover-bg: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f5fa;
  --bg-glow-1: rgba(255, 106, 61, .10);
  --bg-glow-2: rgba(79, 124, 255, .10);
  --surface: rgba(255, 255, 255, .82);
  --surface-2: rgba(255, 255, 255, .95);
  --surface-3: rgba(0, 0, 0, .05);
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .14);
  --text: #16213a;
  --text-2: #5b6478;
  --text-3: #98a0b0;
  --rank-1: #f23d52;
  --rank-2: #f47a1e;
  --rank-3: #e8a913;
  --rank-n: rgba(15, 23, 42, .30);
  --heat-track: rgba(15, 23, 42, .07);
  --skeleton: linear-gradient(90deg, rgba(15,23,42,.05) 25%, rgba(15,23,42,.10) 50%, rgba(15,23,42,.05) 75%);
  --hover-bg: rgba(15, 23, 42, .05);
  color-scheme: light;
}

/* ============ 基础 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, var(--bg-glow-1), transparent 60%),
    radial-gradient(800px 520px at 92% 108%, var(--bg-glow-2), transparent 60%);
}
::selection { background: rgba(255, 61, 90, .32); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1560px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-hot);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(255, 61, 90, .65);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.brand-sub { font-size: 10.5px; color: var(--text-3); letter-spacing: 1.5px; }

/* 搜索 */
.search {
  flex: 1; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search:focus-within {
  border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 16%, transparent);
  background: var(--surface-2);
}
.search-icon { color: var(--text-3); flex-shrink: 0; }
.search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.search input::placeholder { color: var(--text-3); }
.search-kbd {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px;
  background: var(--surface-2);
}
.search-clear { color: var(--text-3); display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.search-clear:hover { color: var(--text); background: var(--hover-bg); }

/* 顶栏右侧 */
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface);
  transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 倒计时环 */
.countdown {
  position: relative; width: 38px; height: 38px; cursor: pointer;
  display: grid; place-items: center;
}
.cd-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.cd-ring circle { fill: none; }
.cd-bg { stroke: var(--surface-3); }
.cd-fg {
  stroke: url(#gradHot);
  stroke-dasharray: 97.4;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.cd-num {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  color: var(--text-2);
}
.countdown.paused .cd-fg { opacity: .35; }
.countdown.paused .cd-num { color: var(--text-3); }

/* ============ 布局 ============ */
.layout {
  max-width: 1560px; margin: 0 auto; padding: 22px 20px 30px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

/* 侧边导航 */
.sidenav { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; }
.nav-pills { display: flex; flex-direction: column; gap: 4px; }
.pill {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 11px;
  color: var(--text-2); font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: all .18s var(--ease); cursor: pointer; text-align: left; width: 100%;
}
.pill .pill-count {
  margin-left: auto; font-size: 11px; font-weight: 700;
  font-family: var(--mono); color: var(--text-3);
}
.pill:hover { background: var(--hover-bg); color: var(--text); }
.pill.active {
  background: var(--grad-hot); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(255, 61, 90, .55);
}
.pill.active .pill-count { color: rgba(255, 255, 255, .85); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.pill.ok .dot { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, .8); }
.pill.bad .dot { background: var(--rank-1); box-shadow: 0 0 6px rgba(255, 77, 90, .8); }

.nav-status {
  font-size: 12px; color: var(--text-3); line-height: 1.7;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 12px;
}
.nav-status b { color: var(--text-2); font-weight: 700; }

.nav-sites {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.nav-sites-title { font-size: 11px; color: var(--text-3); letter-spacing: 1px; font-weight: 700; }
.nav-sites a {
  font-size: 12.5px; color: var(--text-2);
  transition: color .15s, transform .15s;
}
.nav-sites a:hover { color: var(--text); transform: translateX(2px); }

/* 内容区 */
.content { min-width: 0; }
.home-head { margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.home-title { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.home-title .grad { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-sub { font-size: 13px; color: var(--text-3); }

/* ============ 平台卡片 ============ */
.cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
}
.card {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 55%, transparent));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
  animation: cardIn .4s var(--ease) backwards;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}

.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px 11px;
  border-bottom: 1px solid var(--border);
}
.card-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4);
}
.card-name { font-size: 14.5px; font-weight: 750; letter-spacing: .3px; }
.card-cat {
  font-size: 10.5px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px;
}
.card-time {
  margin-left: auto; font-size: 11.5px; color: var(--text-3);
  font-family: var(--mono); display: flex; align-items: center; gap: 5px;
}
.card-time .live { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 7px rgba(52,211,153,.9); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.card-refresh {
  width: 27px; height: 27px; border-radius: 8px; color: var(--text-3);
  display: grid; place-items: center; transition: all .18s;
}
.card-refresh:hover { color: var(--text); background: var(--hover-bg); }
.card-refresh.spinning svg { animation: spin .8s linear infinite; }

.card-list { padding: 5px 8px 8px; }
.li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7.5px 8px; border-radius: 10px;
  cursor: pointer; position: relative;
  transition: background .15s;
}
.li:hover { background: var(--hover-bg); }
.li.visited .li-title { opacity: .55; }
.li-rank {
  font-family: var(--mono); font-size: 14px; font-weight: 800;
  width: 26px; flex-shrink: 0; text-align: center; line-height: 1.5;
  color: var(--rank-n);
  font-variant-numeric: tabular-nums;
}
.li-rank.r1 { color: var(--rank-1); }
.li-rank.r2 { color: var(--rank-2); }
.li-rank.r3 { color: var(--rank-3); }
.li-rank.r1, .li-rank.r2, .li-rank.r3 { font-size: 15.5px; }
.li-main { flex: 1; min-width: 0; }
.li-title {
  font-size: 13.5px; line-height: 1.45; font-weight: 550;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-all;
  transition: color .15s;
}
.li:hover .li-title { color: var(--accent-2); }
.li-meta { display: flex; align-items: center; gap: 7px; margin-top: 3.5px; }
.li-tag {
  font-size: 10px; font-weight: 800; line-height: 1;
  padding: 2.5px 5px; border-radius: 4.5px; flex-shrink: 0;
}
.li-tag.t-hot { background: var(--grad-hot); color: #fff; }
.li-tag.t-boom { background: var(--rank-1); color: #fff; box-shadow: 0 2px 8px -2px rgba(255,77,90,.7); }
.li-tag.t-new { background: #34d399; color: #062; }
.li-tag.t-top { background: var(--grad-cool); color: #fff; }
.li-tag.t-muted { background: var(--surface-3); color: var(--text-2); }
.li-heat {
  font-size: 11px; color: var(--text-3); font-family: var(--mono);
  font-variant-numeric: tabular-nums; margin-left: auto; flex-shrink: 0;
}
.li-desc {
  font-size: 11.5px; color: var(--text-3); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.li-heatbar { height: 3px; border-radius: 2px; background: var(--heat-track); margin-top: 5px; overflow: hidden; }
.li-heatbar > i {
  display: block; height: 100%; border-radius: 2px;
  background: var(--grad-hot);
  transform-origin: left; transform: scaleX(0);
  transition: transform .8s var(--ease);
}

.card-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 2px 8px 10px; padding: 8px;
  border-radius: 10px; font-size: 12.5px; color: var(--text-2); font-weight: 600;
  border: 1px dashed var(--border-strong); background: transparent;
  transition: all .18s;
}
.card-more:hover { color: #fff; background: var(--grad-hot); border-color: transparent; }

/* 卡片错误态 */
.card.card-error { border-style: dashed; }
.card-error-body {
  padding: 26px 16px; text-align: center; color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.card-error-body .err-icon { width: 34px; height: 34px; opacity: .5; }
.card-error-body p { font-size: 12.5px; line-height: 1.6; }
.card-retry {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 6px 16px; transition: all .18s; background: var(--surface-2);
}
.card-retry:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* 骨架屏 */
.skeleton .card-list { padding: 8px; }
.sk-row { display: flex; gap: 10px; padding: 8px; align-items: center; }
.sk-rank { width: 26px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.sk-line { flex: 1; height: 13px; border-radius: 6px; }
.sk-row .sk-line:nth-child(2) { max-width: 78%; }
.sk-row .sk-line:nth-child(3) { max-width: 34%; }
.sk-rank, .sk-line { background: var(--skeleton); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ 详情视图 ============ */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  margin-bottom: 14px; transition: all .18s;
}
.back-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateX(-2px); }
.detail-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--r-lg);
}
.detail-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.detail-name { font-size: 20px; font-weight: 800; }
.detail-meta { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.detail-list { display: flex; flex-direction: column; gap: 2px; }
.detail-list .li { padding: 11px 14px; border-radius: 13px; }
.detail-list .li + .li { border-top: 1px solid var(--border); border-radius: 0; }
.detail-list .li:first-child { border-top: none; }
.detail-list .li-rank { font-size: 17px; width: 34px; }
.li-actions { display: flex; gap: 5px; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.li:hover .li-actions { opacity: 1; }
.li-act {
  width: 27px; height: 27px; border-radius: 8px; color: var(--text-3);
  display: grid; place-items: center; transition: all .15s;
}
.li-act:hover { color: var(--text); background: var(--hover-bg); }

/* ============ 全网热议 ============ */
.sidebar { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; }
.hotbox {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 55%, transparent));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
}
.hotbox-head {
  display: flex; align-items: center; gap: 8px; padding: 13px 15px 10px;
}
.hotbox-title {
  font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 7px;
}
.hotbox-flame { color: var(--accent-2); }
.hotbox-tip {
  margin-left: auto; font-size: 10.5px; color: var(--text-3);
  background: var(--surface-3); border-radius: 5px; padding: 2px 7px;
}
.hotbox-list { padding: 2px 8px 6px; }
.hot-li {
  display: flex; gap: 10px; padding: 8px 7px; border-radius: 10px;
  cursor: pointer; transition: background .15s;
}
.hot-li:hover { background: var(--hover-bg); }
.hot-li-rank {
  font-family: var(--mono); font-weight: 800; font-size: 13.5px;
  width: 22px; text-align: center; flex-shrink: 0; color: var(--rank-n);
  padding-top: 1px;
}
.hot-li-rank.h1 { color: var(--rank-1); }
.hot-li-rank.h2 { color: var(--rank-2); }
.hot-li-rank.h3 { color: var(--rank-3); }
.hot-li-main { flex: 1; min-width: 0; }
.hot-li-title {
  font-size: 12.8px; line-height: 1.45; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hot-li:hover .hot-li-title { color: var(--accent-2); }
.hot-li-plats { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.plat-chip {
  font-size: 10px; font-weight: 700; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-3); border-radius: 5px; padding: 2px 6px;
}
.plat-chip i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.hot-li-extra { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.hot-li-heat { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.hotbox-foot {
  padding: 9px 15px 12px; font-size: 10.5px; color: var(--text-3);
  border-top: 1px solid var(--border); line-height: 1.6;
}
.hotbox-empty { padding: 22px 16px; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* 数据源状态条 */
.statbox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 13px; }
.statbox-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 9px; }
.statbox-row b { color: var(--text-2); font-weight: 700; }
.statbox-bar { height: 6px; border-radius: 4px; background: var(--heat-track); overflow: hidden; }
.statbox-bar-inner { height: 100%; background: var(--grad-hot); border-radius: 4px; transition: width .8s var(--ease); }

/* ============ 页脚 ============ */
.footer {
  max-width: 1560px; margin: 0 auto; padding: 18px 20px 34px;
  text-align: center; font-size: 12px; color: var(--text-3); line-height: 1.9;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--text-2); transition: color .15s; }
.footer a:hover { color: var(--accent-2); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: color-mix(in srgb, var(--text) 92%, transparent);
  color: var(--bg); font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; z-index: 99;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  box-shadow: var(--shadow-2); white-space: nowrap; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--accent-2); flex-shrink: 0; }

/* ============ 榜单导航 ============ */
.navgrid {
  margin-top: 26px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 55%, transparent));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px 18px;
}
.navgrid-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 13px; flex-wrap: wrap; }
.navgrid-title { font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.navgrid-tip { font-size: 11.5px; color: var(--text-3); }
.navgrid-groups {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.ng-group { min-width: 0; }
.ng-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--text-3); margin-bottom: 7px;
  display: flex; align-items: center; gap: 6px;
}
.ng-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.ng-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ng-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 7px; padding: 4px 9px;
  transition: all .16s var(--ease);
}
.ng-link svg { opacity: .55; }
.ng-link:hover {
  color: #fff; border-color: transparent;
  background: var(--grad-hot); transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(255, 61, 90, .5);
}
.ng-link:hover svg { opacity: .85; }

/* ============ 历史热榜 ============ */
.hist-panel {
  margin: 0 0 14px; padding: 13px 15px;
  background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  animation: cardIn .25s var(--ease);
}
.hist-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.hist-title { font-size: 13.5px; font-weight: 800; }
.hist-tip { font-size: 11px; color: var(--text-3); }
.hist-days, .hist-hours { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.hist-hours { margin-bottom: 2px; }
.chip {
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 11px;
  transition: all .15s var(--ease); font-family: var(--mono);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
  background: var(--grad-hot); color: #fff; border-color: transparent;
  box-shadow: 0 3px 10px -3px rgba(255, 61, 90, .5);
}
.hist-list { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }

/* ============ 响应式 ============ */
@media (max-width: 1240px) {
  .layout { grid-template-columns: 160px minmax(0, 1fr); }
  .sidebar { position: static; grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .hotbox { flex: 1.4; }
  .statbox { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .hotbox-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; padding: 14px 12px 24px; }
  .sidenav { position: static; }
  .nav-pills { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .nav-pills::-webkit-scrollbar { display: none; }
  .pill { width: auto; flex-shrink: 0; padding: 8px 14px; }
  .pill .pill-count { display: none; }
  .nav-status { display: none; }
  .nav-sites { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .nav-sites-title { width: 100%; }
  .sidebar { flex-direction: column; }
  .hotbox-list { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand-sub { display: none; }
  .cards { grid-template-columns: 1fr; }
  .li-actions { opacity: 1; }
}
@media (max-width: 420px) {
  .home-title { font-size: 20px; }
  .top-actions { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
