/* 轻撰热榜 — 浅色底 + 小卡片（底部热度条/标签保持原样） */
:root {
  --hb-bg: #f3f5f8;
  --hb-surface: #fff;
  --hb-line: #e6e9ef;
  --hb-text: #1f2329;
  --hb-muted: #8a9199;
  --hb-hot: #ff6a3d;
  --hb-hot-2: #ff3d5a;
  --hb-link: #3b6de8;
  --hb-max: 1240px;
  --hb-radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--hb-text);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
  background: var(--hb-bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.hb-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hb-line);
}
.hb-top-inner {
  width: 100%;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--hb-max)) minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}
.hb-brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 5px 12px 5px 6px;
  border-radius: 12px;
  background: linear-gradient(120deg, #e8f3fb, #eef1ff);
  border: 1px solid #dce7f2;
}
.hb-brand:hover { opacity: .92; }
.hb-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}
.hb-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  letter-spacing: 1px;
  line-height: 1;
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}
.hb-brand-text,
.hb-brand-sub,
.hb-logo,
.hb-logo-mark { display: none; }
.hb-open-app {
  grid-column: 3;
  justify-self: end;
  font-size: 12px;
  color: var(--hb-muted);
  white-space: nowrap;
  padding: 2px 4px;
}
.hb-open-app:hover { color: var(--hb-link); }

.hb-wrap {
  max-width: var(--hb-max);
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.hb-top .hb-plats {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.hb-plat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2px 0;
  transition: opacity .15s;
}
.hb-plat:hover { opacity: .85; }
.hb-plat.is-active .name { color: var(--hb-hot); }
.hb-plat.is-active img {
  outline: 2px solid var(--hb-hot);
  outline-offset: 1px;
}
.hb-plat img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-bottom: 2px;
}
.hb-plat .name {
  display: block;
  width: 100%;
  font-size: 10px;
  font-weight: 600;
  color: var(--hb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-plat .sub { display: none; }

.hb-head {
  --hb-plat: #07c160;
  --hb-plat-soft: rgba(7, 193, 96, .14);
  --hb-plat-wash: #ecfff4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--hb-plat-soft), transparent 55%),
    linear-gradient(118deg, var(--hb-plat-wash) 0%, #fff 46%, #f7fbff 100%);
  border: 1px solid color-mix(in srgb, var(--hb-plat) 18%, #e8ecf1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .85) inset,
    0 -1px 0 rgba(24, 36, 56, .04) inset,
    -8px 0 18px rgba(24, 36, 56, .05),
    8px 0 18px rgba(24, 36, 56, .05),
    0 -6px 16px rgba(24, 36, 56, .04),
    0 14px 32px rgba(24, 36, 56, .12),
    0 4px 10px rgba(24, 36, 56, .08);
}
.hb-head-deco {
  position: absolute;
  right: -28px;
  top: -36px;
  width: 160px;
  height: 160px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--hb-plat) 28%, transparent), transparent 68%);
  transform: rotate(18deg);
  pointer-events: none;
  opacity: .9;
}
.hb-head-deco::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -50px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 14px solid color-mix(in srgb, var(--hb-plat) 12%, transparent);
  opacity: .7;
}
.hb-head[data-plat="weixin"] { --hb-plat: #07c160; --hb-plat-soft: rgba(7,193,96,.16); --hb-plat-wash: #eafff3; }
.hb-head[data-plat="sina"] { --hb-plat: #e6162d; --hb-plat-soft: rgba(230,22,45,.14); --hb-plat-wash: #fff1f2; }
.hb-head[data-plat="thepaper"] { --hb-plat: #c8102e; --hb-plat-soft: rgba(200,16,46,.14); --hb-plat-wash: #fff2f3; }
.hb-head[data-plat="toutiao"] { --hb-plat: #f04142; --hb-plat-soft: rgba(240,65,66,.14); --hb-plat-wash: #fff1f1; }
.hb-head[data-plat="sohu"] { --hb-plat: #ffa200; --hb-plat-soft: rgba(255,162,0,.16); --hb-plat-wash: #fff8eb; }
.hb-head[data-plat="qq"] { --hb-plat: #12b7f5; --hb-plat-soft: rgba(18,183,245,.15); --hb-plat-wash: #eef9ff; }
.hb-head[data-plat="uc"] { --hb-plat: #ff6a00; --hb-plat-soft: rgba(255,106,0,.15); --hb-plat-wash: #fff4eb; }
.hb-head[data-plat="360"] { --hb-plat: #00be3c; --hb-plat-soft: rgba(0,190,60,.14); --hb-plat-wash: #ebfff2; }
.hb-head[data-plat="netease"] { --hb-plat: #c20c0c; --hb-plat-soft: rgba(194,12,12,.14); --hb-plat-wash: #fff1f1; }
.hb-head[data-plat="baidu"] { --hb-plat: #2932e1; --hb-plat-soft: rgba(41,50,225,.14); --hb-plat-wash: #eef0ff; }
.hb-head[data-plat="weibo"] { --hb-plat: #ff8200; --hb-plat-soft: rgba(255,130,0,.15); --hb-plat-wash: #fff5eb; }
.hb-head[data-plat="zhihu"] { --hb-plat: #0066ff; --hb-plat-soft: rgba(0,102,255,.14); --hb-plat-wash: #eef4ff; }
.hb-head[data-plat="quark"] { --hb-plat: #1a73e8; --hb-plat-soft: rgba(26,115,232,.14); --hb-plat-wash: #eef5ff; }
.hb-head[data-plat="douyin"] { --hb-plat: #fe2c55; --hb-plat-soft: rgba(254,44,85,.14); --hb-plat-wash: #fff0f3; }
.hb-head[data-plat="kuaishou"] { --hb-plat: #ff4906; --hb-plat-soft: rgba(255,73,6,.15); --hb-plat-wash: #fff1eb; }
.hb-head[data-plat="xiaohongshu"] { --hb-plat: #fe2c55; --hb-plat-soft: rgba(254,44,85,.14); --hb-plat-wash: #fff0f3; }

.hb-head-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--hb-plat) 22%, #fff);
  box-shadow:
    0 10px 22px var(--hb-plat-soft),
    0 0 0 6px color-mix(in srgb, var(--hb-plat) 8%, transparent);
}
.hb-head-icon img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.hb-head-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.hb-head-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.hb-head h1 {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: #111;
  letter-spacing: .3px;
  line-height: 1.15;
}
.hb-head-plat {
  font-weight: 800;
}
.hb-head-sub {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--hb-plat);
  background: color-mix(in srgb, var(--hb-plat) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--hb-plat) 22%, transparent);
}
.hb-head-dot { display: none; }
.hb-head-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: #5b6570;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(30, 40, 60, .08);
  backdrop-filter: blur(6px);
}
.hb-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .4px;
  color: #fff;
  background: linear-gradient(120deg, #ff4d6d, #ff7a3d);
  box-shadow: 0 4px 12px rgba(255, 77, 109, .28);
  border: 0;
}
.hb-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: hb-pulse 1.6s ease-out infinite;
}
@keyframes hb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hb-live i { animation: none; }
}
.hb-head .desc {
  margin-top: 8px;
  max-width: 52em;
  font-size: 13px;
  color: #7a838c;
  line-height: 1.5;
}
.hb-head .meta { display: none; }

@media (max-width: 560px) {
  .hb-head {
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
  }
  .hb-head-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
  .hb-head-icon img {
    width: 38px;
    height: 38px;
  }
  .hb-head h1 { font-size: 21px; gap: 8px; }
  .hb-head-sub { height: 24px; font-size: 12px; padding: 0 9px; }
}

.hb-list {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.hb-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.hb-card {
  display: block;
  min-height: 0;
  padding: 12px;
  border-radius: var(--hb-radius);
  background: #fff;
  border: 1px solid var(--hb-line);
  box-shadow: 0 4px 14px rgba(30, 40, 60, .05);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.hb-card:hover {
  transform: translateY(-2px);
  border-color: #d7dce5;
  box-shadow: 0 8px 22px rgba(30, 40, 60, .08);
}
.hb-card-main {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.hb-card-cover-link {
  display: block;
  line-height: 0;
}
.hb-card-rk {
  flex-shrink: 0;
  min-width: 24px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #c8ccd2;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.hb-card-rk--top {
  background: linear-gradient(180deg, #ff8a4c 10%, #ff3d5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hb-card-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 89px;
}
.hb-card-body {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.hb-card-title {
  font-size: 14px;
  font-weight: 650;
  color: #1f2329;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.hb-card-meta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: #e11d48;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 26px;
  height: 26px;
}
.hb-card-side {
  flex-shrink: 0;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 7px;
}
.hb-card-cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f5f8;
}
.hb-card-cover--ph {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe0d4, #e4e8ff);
}
.hb-card-cover--fb {
  object-fit: contain;
  padding: 8px;
  background: linear-gradient(145deg, #fff4ef, #eef2ff);
}
/* 改写按钮：橙青撞色 */
.hb-card-rewrite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 26px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(125deg, #ff6b35 0%, #ff9f1c 45%, #2dd4bf 100%);
  border: 1.5px solid #1f2937;
  border-radius: 7px;
  box-shadow: 2px 2px 0 #1f2937;
  transition: transform .14s cubic-bezier(.2, .9, .2, 1), box-shadow .14s, filter .14s;
}
.hb-card-rewrite i {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M11.7 1.6a1.8 1.8 0 0 1 2.5 2.5l-.7.7-2.5-2.5.7-.7ZM1 11.1 9.4 2.7l2.5 2.5L3.5 13.6H1v-2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M11.7 1.6a1.8 1.8 0 0 1 2.5 2.5l-.7.7-2.5-2.5.7-.7ZM1 11.1 9.4 2.7l2.5 2.5L3.5 13.6H1v-2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hb-card-rewrite:hover {
  filter: saturate(1.12) brightness(1.05);
  transform: translate(1px, 1px) scale(1.02);
  box-shadow: 1px 1px 0 #1f2937;
}
.hb-card-rewrite:active {
  transform: translate(2px, 2px) scale(.98);
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .hb-card-rewrite { transition: none; }
  .hb-card-rewrite:hover,
  .hb-card-rewrite:active { transform: none; }
}

.hb-card-foot,
.hb-card-bar,
.hb-card-badge { display: none; }

.hb-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--hb-muted);
  font-size: 14px;
  border-radius: var(--hb-radius);
  background: #fff;
  border: 1px solid var(--hb-line);
}

.hb-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: #a8aeb6;
  line-height: 1.8;
}
.hb-foot a { color: var(--hb-muted); }
.hb-foot a:hover { color: var(--hb-link); }

.hb-hub-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: #111; }
.hb-hub-desc { font-size: 13px; color: var(--hb-muted); margin-bottom: 16px; }

@media (max-width: 1100px) {
  .hb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hb-top-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .hb-top .hb-plats {
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hb-top .hb-plats::-webkit-scrollbar { display: none; }
  .hb-plat {
    flex: 0 0 auto;
    width: 46px;
  }
  .hb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 560px) {
  .hb-cards { grid-template-columns: 1fr; }
}
