/* ============================================
   蓝V数据 · 全站统一样式（原生页面共用）
   ============================================ */

:root {
  --brand: #5B57E8;
  --brand-light: #EEEBFF;
  --brand-dark: #4A46D4;
  --bg: #F6F6F8;
  --card: #FFFFFF;
  --line: #E8E8EE;
  --line-soft: #F0F0F4;
  --tx: #14141C;
  --tx2: #5A5A6E;
  --dim: #9494A8;
  --up: #16A34A;
  --dn: #DC2626;
  --gold: #E8A317;
  --shadow: 0 1px 2px rgba(20,20,28,.04), 0 4px 16px rgba(20,20,28,.04);
  --shadow-hover: 0 6px 24px rgba(91,87,232,.10);
  --radius: 14px;
  --radius-sm: 9px;
  --max-w: 900px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── 导航 ───────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 24px; height: 56px;
}
.site-nav .brand {
  display: flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 800; white-space: nowrap; flex: none;
}
.site-nav .brand b { color: var(--brand); }
.site-nav .nav-links {
  display: flex; gap: 18px; font-size: 14px;
  overflow-x: auto; scrollbar-width: none;
  height: 100%; align-items: center;
}
.site-nav .nav-links::-webkit-scrollbar { display: none; }
.site-nav .nav-links a {
  color: var(--tx2); white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: .15s;
}
.site-nav .nav-links a:hover { color: var(--tx); }
.site-nav .nav-links a.on {
  color: var(--brand); font-weight: 600; border-bottom-color: var(--brand);
}

/* ── 容器 ───────────────────────────────── */
.page { max-width: var(--max-w); margin: 0 auto; padding: 24px 16px 64px; }

.page-head { margin-bottom: 20px; }
.page-head h1 {
  margin: 0 0 6px; font-size: 24px; font-weight: 800;
  letter-spacing: -.3px; line-height: 1.3;
}
.page-head .sub { color: var(--dim); font-size: 13.5px; }

/* ── 区块 ───────────────────────────────── */
.sec { margin-top: 28px; }
.sec:first-child { margin-top: 0; }
.sec-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 13px;
}
.sec-head h2 {
  margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.2px;
}
.sec-head h2 i { font-style: normal; margin-right: 6px; }
.sec-head .more {
  margin-left: auto; font-size: 12.5px; color: var(--brand); font-weight: 600;
}

/* ── 卡片 ───────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 16px; }

/* ── 统计条 ─────────────────────────────── */
.stats {
  display: flex; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stats .stat {
  flex: 1; padding: 14px 8px; text-align: center;
  border-right: 1px solid var(--line-soft); cursor: pointer; transition: .15s;
}
.stats .stat:last-child { border-right: 0; }
.stats .stat:hover { background: #FAFAFE; }
.stats .stat b {
  display: block; font-size: 20px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px; line-height: 1.2;
}
.stats .stat span { font-size: 12px; color: var(--dim); }

/* ── 列表行 ─────────────────────────────── */
.list {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft);
  transition: .13s;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: #FAFAFE; }
.row .rank {
  width: 20px; text-align: center; font-size: 13px; font-weight: 700;
  color: var(--dim); flex: none; font-variant-numeric: tabular-nums;
}
.row:nth-child(1) .rank { color: var(--gold); }
.row:nth-child(2) .rank { color: #A8A8BC; }
.row:nth-child(3) .rank { color: #C98B5E; }
.row img.av {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--line-soft); flex: none; object-fit: cover;
}
.row .info { flex: 1; min-width: 0; }
.row .info .nm {
  font-size: 14px; font-weight: 650; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row .info .meta {
  font-size: 12px; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row .val {
  font-size: 14.5px; font-weight: 750; color: var(--up);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.row .val.dn { color: var(--dn); }

/* ── 标签按钮 ───────────────────────────── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  background: var(--card); border: 1px solid var(--line); color: var(--tx2);
  padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13.5px;
  cursor: pointer; transition: .15s; font-family: inherit;
}
.tab:hover { border-color: #D8D4FF; }
.tab.on {
  background: var(--brand); border-color: var(--brand);
  color: #fff; font-weight: 600;
}

/* ── 内容卡（素材/题材）─────────────────── */
.item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px;
  margin-bottom: 11px; box-shadow: var(--shadow);
}
.item.hot {
  border-color: #D8D4FF;
  background: linear-gradient(165deg, #FBFaff, #fff 60%);
}
.item-head {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 9px; flex-wrap: wrap;
}
.item-tag {
  font-size: 11.5px; background: var(--brand-light); color: var(--brand);
  padding: 2px 8px; border-radius: 6px; font-weight: 700;
}
.item-head a { font-size: 13px; color: var(--brand); font-weight: 600; }
.item-head .time { font-size: 11.5px; color: var(--dim); margin-left: auto; }
.item-body { font-size: 14px; line-height: 1.65; color: #2A2A3C; margin-bottom: 11px; }
.item-foot {
  font-size: 12px; color: var(--dim); display: flex;
  align-items: center; gap: 10px; flex-wrap: wrap;
}
.item-foot .btn {
  margin-left: auto; background: #fff; border: 1px solid var(--line);
  color: var(--tx2); padding: 5px 12px; border-radius: 8px;
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.item-foot .btn:hover { border-color: var(--up); color: var(--up); }
.item-foot .btn.done {
  background: #F0FDF4; border-color: var(--up); color: var(--up);
}

/* ── 入口大卡 ───────────────────────────── */
.entry {
  display: flex; align-items: center; gap: 15px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); transition: .18s;
}
.entry:hover {
  border-color: #D8D4FF; box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.entry .ic { font-size: 30px; flex: none; line-height: 1; }
.entry .tx { flex: 1; min-width: 0; }
.entry .tx b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.entry .tx span { font-size: 12.5px; color: var(--dim); }
.entry .go {
  background: var(--brand); color: #fff; padding: 9px 18px;
  border-radius: 10px; font-size: 13.5px; font-weight: 650;
  white-space: nowrap; flex: none;
  box-shadow: 0 2px 8px rgba(91,87,232,.25);
}

/* ── 骨架 / 空态 ────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,#F0F0F4 25%,#FAFAFC 50%,#F0F0F4 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm); height: 56px; margin-bottom: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.empty { padding: 28px 20px; text-align: center; color: var(--dim); font-size: 13.5px; }

/* ── 页脚 ───────────────────────────────── */
.site-foot {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  text-align: center; color: var(--dim); font-size: 12.5px; line-height: 1.9;
}
.site-foot a { color: var(--brand); font-weight: 600; }

/* ── 响应式 ─────────────────────────────── */
@media (max-width: 640px) {
  .site-nav .nav-inner { gap: 14px; height: 52px; }
  .site-nav .nav-links { gap: 14px; font-size: 13px; }
  .page { padding: 18px 14px 50px; }
  .page-head h1 { font-size: 21px; }
  .stats { flex-wrap: wrap; }
  .stats .stat { min-width: 50%; border-bottom: 1px solid var(--line-soft); }
  .stats .stat:nth-child(3), .stats .stat:nth-child(4) { border-bottom: 0; }
  .row { padding: 10px 13px; gap: 10px; }
  .item-head .time { width: 100%; margin-left: 0; }
}
