/* ============================================================
   文脉首页门户化样式（仿头条/新浪两栏门户）
   复用站点设计变量：--seal / --ink / --parchment / --parchment-border
   ============================================================ */

/* ---------- 导航右上角下载按钮 ---------- */
.btn-download-nav {
  margin-right: 10px;
  padding: 7px 14px;
  border: 1px solid var(--seal);
  background: var(--seal);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: var(--font-sans, inherit);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}
.btn-download-nav:hover { background: var(--seal-dark); border-color: var(--seal-dark); transform: translateY(-1px); }
@media (max-width: 520px) {
  .btn-download-nav { padding: 6px 10px; font-size: 0.78rem; margin-right: 6px; }
}

/* ---------- 紧凑刊头 ---------- */
.hm-masthead {
  position: relative;
  text-align: left;
  padding: 14px 20px 12px;
  color: #fff;
  background:
    linear-gradient(rgba(20,14,8,.74), rgba(20,14,8,.82)),
    url('/img/areas/110000000000.jpg') center/cover no-repeat,
    linear-gradient(135deg, #1a1208, #3a241a);
  border-bottom: 3px solid var(--seal);
}
.hm-masthead-inner {
  max-width: 1180px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr minmax(340px, auto) 1fr;
  gap: 34px; align-items: stretch;
}
.hm-mast-center { text-align: center; align-self: center; }
.hm-mast-left, .hm-mast-right { min-width: 0; display: flex; flex-direction: column; }

/* 左侧：搜索 + 热门地区 */
.hm-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 6px 6px 6px 16px;
  backdrop-filter: blur(4px);
}
.hm-search input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  color: #fff; font-size: .92rem; font-family: var(--font-sans, inherit);
}
.hm-search input::placeholder { color: rgba(255,255,255,.6); }
.hm-search button {
  flex: 0 0 auto; width: 38px; height: 38px; border: none; border-radius: 999px;
  background: var(--seal); color: #fff; cursor: pointer; font-size: 1rem;
  transition: background .2s ease;
}
.hm-search button:hover { background: var(--seal-dark); }
.hm-hot-regions { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-hr-label { font-size: .8rem; color: var(--gold-light, #d8b87a); margin-right: 2px; }
.hm-hot-regions a {
  font-size: .84rem; color: rgba(255,255,255,.85); cursor: pointer;
  padding: 3px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  transition: all .2s ease; user-select: none;
}
.hm-hot-regions a:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }

/* 左侧滚动文脉 + 右侧滚动经典话语 */
.hm-feed, .hm-quotes {
  margin-top: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 12px;
  padding: 8px 14px 10px;
  backdrop-filter: blur(4px);
  flex: 0 0 auto;
  display: flex; flex-direction: column;
}
.hm-feed-head, .hm-quotes-head {
  font-size: .76rem; letter-spacing: .14em;
  color: var(--gold-light, #d8b87a); margin-bottom: 7px;
}
.hm-feed-view, .hm-quotes-view {
  height: 184px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
}
.hm-feed-track, .hm-quotes-track {
  display: block; will-change: transform;
  animation: hm-marquee 40s linear infinite;
}
.hm-quotes-track { animation-duration: 52s; }
@keyframes hm-marquee { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hm-feed-view:hover .hm-feed-track, .hm-quotes-view:hover .hm-quotes-track { animation-play-state: paused; }

.hm-feed-empty { color: rgba(255,255,255,.6); font-size: .85rem; padding: 8px 4px; }

/* 经典话语横向滚动条（英雄区下方，原右栏经典话语挪此） */
.hm-quotes-strip {
  display: flex; align-items: stretch;
  margin: 0 auto 16px; max-width: 1180px;
  background: linear-gradient(90deg, #2a1d0e 0%, #3a2a14 100%);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(60,40,20,.1);
}
.hm-quotes-label {
  flex: 0 0 auto; display: flex; align-items: center;
  padding: 0 16px; background: linear-gradient(135deg, #d8b44b, #b88a28);
  color: #2a1d0e; font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  cursor: pointer; white-space: nowrap; box-shadow: 4px 0 12px rgba(0,0,0,.18); z-index: 2;
}
.hm-quotes-label:hover { filter: brightness(1.08); }
.hm-quotes-hview {
  flex: 1 1 auto; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.hm-quotes-htrack {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 9px 0; will-change: transform;
  animation: hmQuotesScroll 60s linear infinite;
}
.hm-quotes-hview:hover .hm-quotes-htrack { animation-play-state: paused; }
@keyframes hmQuotesScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hm-quotes-hitem {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 4px 22px; border-right: 1px dashed rgba(212,175,55,.30);
  color: #f3e7cf;
}
.hm-quotes-hitem b { font-size: .92rem; font-weight: 500; }
.hm-quotes-hitem i { font-size: .76rem; font-style: normal; color: rgba(232,201,122,.85); }
.hm-quotes-hempty { color: rgba(232,201,122,.7); font-size: .86rem; padding: 0 14px; }

@media (max-width: 700px) {
  .hm-quotes-strip { margin: 0 10px 14px; }
  .hm-quotes-label { padding: 0 12px; font-size: .84rem; }
  .hm-quotes-hitem { padding: 4px 16px; }
  .hm-quotes-hitem b { font-size: .84rem; }
}

.hm-feed-item {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; padding: 7px 9px; border-radius: 8px;
  background: rgba(255,255,255,.06); cursor: pointer;
  text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.hm-feed-item:hover { background: rgba(255,255,255,.16); transform: translateX(2px); }
.hm-feed-tag {
  flex: 0 0 auto; font-size: .68rem; padding: 2px 8px; border-radius: 999px;
  color: #fff; background: var(--seal); white-space: nowrap;
}
.hm-feed-tag.tag-chron { background: #7a5a2e; }
.hm-feed-tag.tag-classic { background: #9c5b2e; }
.hm-feed-tag.tag-book { background: #356a8c; }
.hm-feed-tag.tag-film { background: #7a4a8a; }
.hm-feed-tag.tag-music { background: #2e7a5a; }
.hm-feed-tag.tag-column { background: #8a3a3a; }
.hm-feed-title {
  flex: 1 1 auto; min-width: 0; font-size: .86rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-feed-sub { flex: 0 0 auto; font-size: .74rem; color: rgba(255,255,255,.6); white-space: nowrap; }

.hm-quote-item { padding: 11px 4px; border-bottom: 1px dashed rgba(255,255,255,.14); }
.hm-quote-item:last-child { border-bottom: none; }
.hm-quote-item p { margin: 0; font-family: var(--font-serif, "Noto Serif SC", serif); font-size: .98rem; line-height: 1.7; color: #fff; }
.hm-quote-item span { display: block; margin-top: 5px; font-size: .76rem; color: rgba(255,255,255,.6); text-align: right; }

/* 首页 · hero 左栏「常识」竖滚（墨青色，区别于右栏金色经典话语） */
.hm-cs-col { background: rgba(86,184,196,.07); border-color: rgba(86,184,196,.34); }
.hm-cs-col .hm-feed-head { color: #8fd9e3; }
.hm-cs-col .hm-feed-view { height: 248px; }
.hm-cs-col-track { animation-duration: 78s; }
.hm-cs-col-item {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; padding: 7px 9px; border-radius: 8px;
  background: rgba(255,255,255,.05); cursor: pointer;
  text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.hm-cs-col-item:hover { background: rgba(86,184,196,.20); transform: translateX(2px); }
.hm-cs-col-tag {
  flex: 0 0 auto; font-size: .66rem; line-height: 1; padding: 3px 7px; border-radius: 999px; white-space: nowrap;
}
.hm-cs-col-item.hm-cs-tj .hm-cs-col-tag { background: rgba(212,175,55,.18); color: #e8c97a; }
.hm-cs-col-item.hm-cs-wy .hm-cs-col-tag { background: rgba(86,184,196,.22); color: #8fd9e3; }
.hm-cs-col-text { flex: 1 1 auto; min-width: 0; font-size: .86rem; color: #eaf6f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 880px) {
  .hm-masthead-inner { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .hm-mast-center { order: -1; }
  .hm-mast-left, .hm-mast-right { max-width: 460px; margin: 0 auto; width: 100%; }
  .hm-hot-regions { justify-content: center; }
  .hm-feed-view, .hm-quotes-view { height: 130px; }
}

/* 桌面端：右侧栏独立滚动（鼠标滚轮只滚右侧内部，sticky 黏在首屏） */
@media (min-width: 881px) {
  .hm-mast-right {
    position: sticky;
    top: 12px;
    align-self: flex-start;
    max-height: min(74vh, 700px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
  }
  .hm-mast-right::-webkit-scrollbar { width: 7px; }
  .hm-mast-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 7px; }
  .hm-mast-right::-webkit-scrollbar-track { background: transparent; }
}
.hm-kicker {
  display: inline-block;
  letter-spacing: .5em;
  font-size: .8rem;
  color: var(--gold-light, #d8b87a);
  margin: 0 0 6px;
  padding-left: .5em;
}
.hm-title {
  font-family: var(--font-serif, "Noto Serif SC", serif);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: .12em;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.hm-accent { color: var(--seal); }
.hm-tagline {
  font-size: .92rem;
  line-height: 1.7;
  color: rgba(255,255,255,.86);
  margin: 0 auto 14px;
  max-width: 560px;
}
.hm-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hm-btn {
  padding: 11px 26px;
  border-radius: 999px;
  font-size: .95rem;
  cursor: pointer;
  font-family: var(--font-sans, inherit);
  transition: all .2s ease;
  border: 1.5px solid transparent;
}
.hm-btn-solid { background: var(--seal); color: #fff; border-color: var(--seal); }
.hm-btn-solid:hover { background: var(--seal-dark); border-color: var(--seal-dark); transform: translateY(-2px); }
.hm-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hm-btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- 数据统计条 ---------- */
.hm-stats { background: #14110c; padding: 22px 0; }
.hm-stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
}
.hm-stat { text-align: center; min-width: 84px; }
.hm-stat b {
  display: block;
  font-family: var(--font-serif, serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light, #d8b87a);
  line-height: 1.1;
}
.hm-stat span { display: block; font-size: .82rem; color: rgba(255,255,255,.62); margin-top: 4px; }

/* ---------- 两栏布局 ---------- */
.hm-layout { display: flex; gap: 30px; align-items: flex-start; padding-top: 34px; padding-bottom: 40px; }
.hm-main { flex: 1 1 640px; min-width: 0; }
.hm-side { flex: 0 0 300px; position: sticky; top: 84px; }

/* ---------- 内容区块 ---------- */
.hm-block { margin-bottom: 38px; }
.hm-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--parchment-border);
  padding-bottom: 10px; margin-bottom: 18px;
}
.hm-block-head h2 {
  font-family: var(--font-serif, serif);
  font-size: 1.45rem;
  color: var(--ink);
  margin: 0;
}
.hm-more {
  background: none; border: none; cursor: pointer;
  color: var(--seal); font-size: .9rem; font-family: var(--font-sans, inherit);
  padding: 0; transition: opacity .2s;
}
.hm-more:hover { opacity: .7; text-decoration: underline; }

/* ---------- 地方风采（真实区域图） ---------- */
.hm-province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.hm-prov {
  background: #fff;
  border: 1px solid var(--parchment-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hm-prov:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(60,40,20,.12); }
.hm-prov-img {
  height: 92px;
  background-color: var(--parchment-dark);
  background-size: cover;
  background-position: center;
}
.hm-prov-name { font-family: var(--font-serif, serif); font-size: 1rem; color: var(--ink); padding: 9px 12px 0; font-weight: 600; }
.hm-prov-intro { font-size: .76rem; color: var(--ink-light); padding: 2px 12px 11px; line-height: 1.5; height: 34px; overflow: hidden; }

/* ---------- 推荐卡片（书/影/乐/文章/专栏通用） ---------- */
.hm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 16px;
}
.hm-card {
  background: #fff;
  border: 1px solid var(--parchment-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hm-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(60,40,20,.14); border-color: var(--seal); }
.hm-card-cover {
  height: 104px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  color: rgba(255,255,255,.92);
}
.hm-c-chronicle { background: linear-gradient(135deg, #8a5a2b, #c89b5a); }
.hm-c-book      { background: linear-gradient(135deg, #355a8a, #6a8ac8); }
.hm-c-film      { background: linear-gradient(135deg, #5a2b4a, #a85a8a); }
.hm-c-music     { background: linear-gradient(135deg, #2b5a4a, #5aa88a); }
.hm-c-column    { background: linear-gradient(135deg, #7a3a2b, #c86a4a); }
.hm-card-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.hm-card-body h4 {
  font-family: var(--font-serif, serif);
  font-size: 1rem; color: var(--ink); margin: 0 0 7px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-card-body p {
  font-size: .82rem; color: var(--ink-light); line-height: 1.6; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.hm-card-meta { font-size: .76rem; color: var(--ink-muted); margin-top: auto; }

/* ---------- 侧栏卡片 ---------- */
.hm-side-card {
  background: #fff;
  border: 1px solid var(--parchment-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}
.hm-side-head {
  font-family: var(--font-serif, serif);
  font-size: 1.1rem; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 1px solid var(--parchment-border);
}
.hm-hot { list-style: none; margin: 0; padding: 0; counter-reset: hot; animation: hmHotScroll 26s linear infinite; will-change: transform; }
.hm-hot-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px; cursor: pointer;
  border-bottom: 1px dashed var(--parchment-border);
}
.hm-hot-item:last-child { border-bottom: none; }
.hm-hot-item:hover .hm-hot-title { color: var(--seal); }
.hm-hot-rank {
  flex: 0 0 22px; height: 22px; line-height: 22px; text-align: center;
  font-size: .8rem; font-weight: 700; border-radius: 5px;
  background: var(--parchment-dark); color: var(--ink-muted);
}
.hm-hot-rank.top { background: var(--seal); color: #fff; }
.hm-hot-title {
  font-size: .9rem; color: var(--ink-mid); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-hot-tag {
  flex: 0 0 auto; font-size: .66rem; padding: 2px 7px; border-radius: 999px;
  color: #fff; background: var(--seal); white-space: nowrap; line-height: 1.5;
}
.hm-hot-tag.tag-chron { background: #7a5a2e; }
.hm-hot-tag.tag-book { background: #356a8c; }
.hm-hot-tag.tag-film { background: #7a4a8a; }
.hm-hot-tag.tag-music { background: #2e7a5a; }
.hm-hot-tag.tag-column { background: #8a3a3a; }
.hm-hot-loading { color: var(--ink-muted); font-size: .88rem; text-align: center; padding: 10px; }
/* 全站热门：竖向自动滚动 + 鼠标悬停暂停 */
.hm-hot-view {
  height: 300px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 88%, transparent);
}
.hm-hot-view:hover .hm-hot { animation-play-state: paused; }
@keyframes hmHotScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.hm-download { background: linear-gradient(135deg, #1a1208, #3a241a); color: #fff; text-align: center; border: none; }
.hm-dl-icon { font-size: 2.2rem; }
.hm-download h3 { font-family: var(--font-serif, serif); margin: 6px 0 6px; color: var(--gold-light, #d8b87a); }
.hm-download p { font-size: .84rem; color: rgba(255,255,255,.78); line-height: 1.6; margin: 0 0 14px; }
.hm-upload h3 { font-family: var(--font-serif, serif); font-size: 1.05rem; color: var(--ink); margin: 0 0 6px; }
.hm-upload p { font-size: .84rem; color: var(--ink-light); line-height: 1.6; margin: 0 0 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hm-layout { flex-direction: column; }
  .hm-side { flex: 1 1 auto; width: 100%; position: static; }
  .hm-title { font-size: 2.6rem; }
}
@media (max-width: 600px) {
  .hm-masthead { padding: 16px 16px 14px; }
  .hm-title { font-size: 2.2rem; }
  .hm-stat b { font-size: 1.5rem; }
  .hm-stat-row { gap: 10px 18px; }
  .hm-province-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .hm-card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ===================== 排行榜页（独立行业榜单·红黑榜·城市维度） ===================== */
.rk-page { max-width: 1200px; margin: 0 auto; padding: 34px 20px 60px; }
.rk-head { text-align: center; margin-bottom: 26px; }
.rk-title { font-family: var(--font-serif, "Noto Serif SC", serif); font-size: 2.4rem; color: var(--seal); margin: 0 0 8px; letter-spacing: .04em; }
.rk-sub { color: var(--ink-mid, #6b5d4f); font-size: .92rem; line-height: 1.7; margin: 0 auto; max-width: 760px; }

.rk-layout { display: grid; grid-template-columns: 184px 1fr; gap: 22px; align-items: start; }

/* 左侧分类侧栏 */
.rk-side { position: sticky; top: 18px; background: #fff; border: 1px solid var(--line, #ece3d3); border-radius: 14px; padding: 12px; }
.rk-side-title { font-size: .78rem; color: #b3a791; letter-spacing: .12em; margin: 4px 6px 10px; }
.rk-nav {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; margin-bottom: 4px;
  border: none; border-left: 3px solid transparent; background: transparent; border-radius: 8px;
  font-size: .94rem; color: var(--ink-mid, #6b5d4f); cursor: pointer; text-align: left; font-family: inherit;
  transition: all .15s ease;
}
.rk-nav:hover { background: #faf6ee; }
.rk-nav.active { font-weight: 700; }
.rk-nav-ic { font-size: 1.05rem; line-height: 1; }
.rk-nav-name { white-space: nowrap; }

/* 主区 */
.rk-main { min-width: 0; }
.rk-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; padding: 11px 16px;
  background: #faf6ee; border: 1px solid var(--line, #ece3d3); border-radius: 14px;
}
.rk-types { display: inline-flex; gap: 8px; }
.rk-type-btn {
  padding: 7px 18px; border-radius: 999px; border: 1.5px solid #cbd2da;
  background: #fff; color: #6b7280; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .15s ease; font-family: inherit;
}
.rk-type-btn.red.active { background: #C43A31; border-color: #C43A31; color: #fff; box-shadow: 0 2px 8px rgba(196,58,49,.25); }
.rk-type-btn.black.active { background: #2c2c2c; border-color: #2c2c2c; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.rk-type-btn:hover { transform: translateY(-1px); }

.rk-citybox { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-mid, #6b5d4f); }
.rk-citybox select {
  padding: 6px 10px; border-radius: 8px; border: 1.5px solid #cbd2da; background: #fff;
  font-size: .88rem; color: var(--ink, #2c241b); font-family: inherit; cursor: pointer;
}

/* 分类简介 */
.rk-catintro {
  display: flex; gap: 8px; align-items: flex-start; background: #fbf7f0; border: 1px dashed var(--line, #e6dccb);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: .88rem; color: var(--ink-mid, #6b5d4f); line-height: 1.6;
}
.rk-catintro-ic { font-size: 1.1rem; }

.rk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.rk-loading { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--ink-mid, #8a7c6c); }
.rk-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line, #ece3d3); border-left-width: 4px; border-radius: 14px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.rk-card.red { border-left-color: #C43A31; }
.rk-card.black { border-left-color: #2c2c2c; }
.rk-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.rk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rk-badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.rk-badge.red { background: #C43A31; color: #fff; }
.rk-badge.black { background: #2c2c2c; color: #fff; }
.rk-city { font-size: .78rem; color: var(--ink-mid, #8a7c6c); background: #f3ede1; border-radius: 999px; padding: 3px 9px; }
.rk-card-title { font-size: 1.02rem; font-weight: 700; color: var(--ink, #2c241b); line-height: 1.4; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk-card-title:hover { color: var(--seal); }
.rk-card-intro { font-size: .82rem; color: #9a8d7c; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; gap: 8px; }
.rk-count { font-size: .78rem; font-weight: 600; color: var(--seal); background: #fdf1ea; border-radius: 999px; padding: 2px 9px; }
.rk-updated { font-size: .74rem; color: #b3a791; }
.rk-src { font-size: .72rem; color: #b3a791; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 投票按钮 */
.rk-vote {
  margin-top: 4px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--seal); background: #fff; color: var(--seal);
  font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.rk-vote:hover { background: #fdf1ea; }
.rk-vote.voted { background: var(--seal); color: #fff; }
.rk-vote.sm { margin-top: 0; padding: 5px 12px; font-size: .8rem; }
.rk-vote-n { font-variant-numeric: tabular-nums; }

/* 投稿面板 */
.rk-proposals { margin-top: 30px; background: #fff; border: 1px solid var(--line, #ece3d3); border-radius: 16px; padding: 18px 20px; }
.rk-proposals-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-weight: 700; color: var(--ink, #2c241b); }
.rk-propose-btn { padding: 7px 16px; border-radius: 999px; border: none; background: var(--seal); color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.rk-propose-btn:hover { filter: brightness(1.05); }
.rk-proposal-list { display: flex; flex-direction: column; gap: 10px; }
.rk-empty { color: #b3a791; font-size: .86rem; padding: 14px 4px; text-align: center; }
.rk-proposal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #faf6ee; border: 1px solid var(--line, #f0e9dc); border-radius: 12px; }
.rk-proposal-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rk-proposal-cat { font-size: .76rem; font-weight: 700; }
.rk-proposal-title { font-size: .96rem; font-weight: 600; color: var(--ink, #2c241b); }
.rk-proposal-intro { font-size: .8rem; color: #9a8d7c; line-height: 1.5; }
.rk-proposal-by { font-size: .72rem; color: #b3a791; }

/* 投稿表单（弹窗内） */
.rk-form { display: flex; flex-direction: column; gap: 6px; }
.rk-form label { font-size: .82rem; color: var(--ink-mid, #6b5d4f); margin-top: 6px; }
.rk-form select, .rk-form input, .rk-form textarea {
  padding: 9px 11px; border-radius: 9px; border: 1.5px solid #d9cfbd; background: #fff;
  font-size: .9rem; color: var(--ink, #2c241b); font-family: inherit;
}
.rk-form textarea { resize: vertical; }
.rk-form-msg { min-height: 18px; font-size: .8rem; }
.rk-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.rk-form-cancel { padding: 8px 16px; border-radius: 9px; border: 1.5px solid #d9cfbd; background: #fff; color: var(--ink-mid, #6b5d4f); cursor: pointer; font-family: inherit; }
.rk-form-submit { padding: 8px 18px; border-radius: 9px; border: none; background: var(--seal); color: #fff; font-weight: 600; cursor: pointer; font-family: inherit; }

/* 榜单详情（弹窗内） */
.rk-detail-intro { font-size: .92rem; color: var(--ink-mid, #6b5d4f); line-height: 1.7; margin: 6px 0 14px; }
.rk-detail-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rk-detail-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; background: #faf6ee; border-radius: 10px; border: 1px solid var(--line, #f0e9dc); }
.rk-detail-rank { flex: 0 0 auto; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%;
  background: var(--seal); color: #fff; font-size: .82rem; font-weight: 700; }
.rk-detail-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rk-detail-title { font-weight: 600; color: var(--ink, #2c241b); font-size: .96rem; }
.rk-detail-note { font-size: .82rem; color: #9a8d7c; line-height: 1.55; }
.rk-detail-addr { font-size: .8rem; color: #3F7CAC; }
.rk-detail-rec { font-size: .8rem; color: #B5763A; }
.rk-detail-src { margin-top: 14px; font-size: .76rem; color: #b3a791; border-top: 1px dashed var(--line, #ece3d3); padding-top: 10px; }

/* 中外 / 分类 筛选（影视·书籍·音乐） */
.rk-mediabox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rk-seg { display: inline-flex; gap: 6px; background: #faf6ee; border: 1px solid var(--line, #ece3d3); border-radius: 999px; padding: 3px; }
.rk-seg-btn { padding: 5px 14px; border: none; background: transparent; border-radius: 999px; font-size: .82rem; color: var(--ink-mid, #6b5d4f); cursor: pointer; font-family: inherit; transition: all .15s ease; }
.rk-seg-btn.active { background: var(--seal); color: #fff; font-weight: 600; }
.rk-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-genre-btn { padding: 5px 12px; border: 1.5px solid var(--line, #d9cfbd); background: #fff; border-radius: 999px; font-size: .8rem; color: var(--ink-mid, #6b5d4f); cursor: pointer; font-family: inherit; transition: all .15s ease; }
.rk-genre-btn:hover { border-color: var(--seal); color: var(--seal); }
.rk-genre-btn.active { background: var(--seal); border-color: var(--seal); color: #fff; font-weight: 600; }

/* 卡片：中外 / 分类 标签 */
.rk-card-top { flex-wrap: wrap; }
.rk-tag { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f3ede1; color: #8a7c6c; }
.rk-tag.genre { background: #eef3f1; color: #2E7D8C; }

/* 详情内：排序切换 + 条目级投票 */
.rk-sortbar { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.rk-sort-label { font-size: .8rem; color: #b3a791; }
.rk-sort-btn { padding: 5px 14px; border: 1.5px solid var(--line, #d9cfbd); background: #fff; border-radius: 999px; font-size: .82rem; color: var(--ink-mid, #6b5d4f); cursor: pointer; font-family: inherit; transition: all .15s ease; }
.rk-sort-btn:hover { border-color: var(--seal); color: var(--seal); }
.rk-sort-btn.active { background: var(--seal); border-color: var(--seal); color: #fff; font-weight: 600; }
.rk-item-vote { align-self: center; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--seal); background: #fff; color: var(--seal); font-size: .8rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s ease; }
.rk-item-vote:hover { background: #fdf1ea; }
.rk-item-vote.voted { background: var(--seal); color: #fff; }
.rk-detail-list li { flex-wrap: wrap; }

@media (max-width: 520px) {
  .rk-mediabox { width: 100%; }
  .rk-detail-list li { flex-wrap: wrap; }
  .rk-item-vote { margin-left: 38px; }
}

@media (max-width: 820px) {
  .rk-layout { grid-template-columns: 1fr; }
  .rk-side { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .rk-side-title { width: 100%; }
  .rk-nav { width: auto; border-left: none; border: 1.5px solid var(--line, #ece3d3); margin-bottom: 0; }
  .rk-nav.active { border-color: currentColor; }
}
@media (max-width: 700px) {
  .rk-page { padding: 24px 14px 48px; }
  .rk-title { font-size: 1.9rem; }
  .rk-toolbar { flex-direction: column; gap: 10px; }
  .rk-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rk-card-title { font-size: .98rem; }
}
@media (max-width: 460px) {
  .rk-grid { grid-template-columns: 1fr; }
  .rk-proposal { flex-direction: column; align-items: stretch; }
}

/* ===== 首页 · 排行榜滚动条 ===== */
.hm-rank-strip {
  display: flex;
  align-items: stretch;
  margin: 0 auto 18px;
  max-width: 1180px;
  background: linear-gradient(90deg, #2a1d0e 0%, #3a2a14 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.1);
}
.hm-rank-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--seal, #b3402f);
  color: #fff5e6;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.hm-rank-label:hover { filter: brightness(1.08); }
.hm-rank-view {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.hm-rank-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 0;
  animation: hmRankScroll 110s linear infinite;
  will-change: transform;
}
.hm-rank-view:hover .hm-rank-track { animation-play-state: paused; }
@keyframes hmRankScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hm-rank-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 22px;
  border-right: 1px dashed rgba(212, 175, 55, 0.22);
  cursor: pointer;
  color: #f3e7cf;
  text-decoration: none;
  transition: color .15s ease;
}
.hm-rank-item:hover { color: #ffd98a; }
.hm-rank-cat {
  flex: 0 0 auto;
  font-size: .68rem;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: #e8c97a;
  white-space: nowrap;
}
.hm-rank-title { font-size: .9rem; white-space: nowrap; }
.hm-rank-empty { color: #c9b48a; font-size: .86rem; padding: 0 14px; }

@media (max-width: 700px) {
  .hm-rank-strip { margin: 0 10px 16px; }
  .hm-rank-label { padding: 0 12px; font-size: .84rem; }
  .hm-rank-title { font-size: .84rem; }
  .hm-rank-item { padding: 4px 16px; }
}

/* ============ 常识 区块 ============ */
.cs-page { max-width: 1200px; margin: 0 auto; padding: 24px 18px 60px; }
.cs-head { text-align: center; margin-bottom: 24px; }
.cs-title { font-size: 30px; font-weight: 700; margin: 0 0 10px; color: #2c241a; }
.cs-sub { color: #6b6253; font-size: 15px; max-width: 780px; margin: 0 auto; line-height: 1.75; }
.cs-layout { display: flex; gap: 24px; align-items: flex-start; }
.cs-side { width: 184px; flex: 0 0 184px; position: sticky; top: 80px; }
.cs-side-title { font-size: 13px; color: #a99c84; margin-bottom: 12px; padding-left: 6px; letter-spacing: .08em; }
.cs-nav {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 12px 14px; border: none; border-radius: 12px; margin-bottom: 10px;
  background: #f6f1e7; cursor: pointer; font-size: 15px; color: #5a4a32;
  transition: background .15s ease, color .15s ease; text-align: left;
}
.cs-nav:hover { background: #ece2cf; }
.cs-nav.active { background: #B5763A; color: #fff; }
.cs-nav-ic { font-size: 17px; }
.cs-nav-name { flex: 1; }
.cs-nav-cnt { font-size: 12px; background: rgba(0,0,0,.06); border-radius: 999px; padding: 1px 8px; }
.cs-nav.active .cs-nav-cnt { background: rgba(255,255,255,.22); }
.cs-main { flex: 1; min-width: 0; }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cs-card {
  background: #fff; border: 1px solid #ece3d2; border-radius: 14px; padding: 16px 18px;
  cursor: pointer; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; gap: 9px;
}
.cs-card:hover { box-shadow: 0 8px 22px rgba(80,60,20,.10); transform: translateY(-2px); border-color: #d8c39a; }
.cs-card-title { font-size: 17px; font-weight: 600; color: #2c241a; }
.cs-card-sum { font-size: 14px; color: #5b5142; line-height: 1.7; }
.cs-card-src { align-self: flex-start; font-size: 12.5px; color: #9a7b45; background: #f7f0e0; border-radius: 6px; padding: 4px 9px; }
.cs-card-epigram { font-size: 13px; color: #6a4b86; line-height: 1.7; border-left: 2px solid #b79fd0; padding: 4px 0 4px 10px; font-style: italic; }
.cs-loading, .cs-empty { color: #a99c84; padding: 40px; text-align: center; grid-column: 1 / -1; }
.cs-detail-sum { font-size: 16px; color: #3a3328; line-height: 1.85; margin-bottom: 14px; }
.cs-epigram { margin: 4px 0 18px; padding: 12px 16px; background: linear-gradient(180deg, #f6f1f9, #efe7f4); border-left: 3px solid #7a5a8a; border-radius: 8px; font-size: 15.5px; color: #5b3d6e; line-height: 1.85; font-style: italic; }
.cs-detail-src { margin-top: 16px; font-size: 13px; color: #9a7b45; background: #f7f0e0; border-radius: 8px; padding: 8px 12px; }

/* 顶部双 Tab：基础常识 / 国人常识 */
.cs-tabs { display: flex; justify-content: center; gap: 12px; margin: 4px 0 14px; }
.cs-tab {
  padding: 11px 30px; border: 1.5px solid #e2d4ba; border-radius: 999px;
  background: #fbf7ef; cursor: pointer; font-size: 16px; font-weight: 600; color: #8a7a5c;
  transition: all .15s ease;
}
.cs-tab:hover { border-color: #cdb588; color: #6b5a38; }
.cs-tab.active { background: #B5763A; border-color: #B5763A; color: #fff; box-shadow: 0 4px 14px rgba(181,118,58,.25); }
.cs-mode-desc { max-width: 860px; margin: 0 auto 22px; text-align: center; color: #7a6e58; font-size: 14.5px; line-height: 1.8; padding: 0 16px; }

/* 国人常识：时间线导航 + 故事卡片 */
.cs-nav-era { font-size: 11px; color: #b09a73; margin-left: auto; padding-left: 8px; white-space: nowrap; }
.cs-nav.active .cs-nav-era { color: rgba(255,255,255,.82); }
.cs-card-guoren { border-left: 3px solid #B5763A; background: linear-gradient(180deg, #fffdf8, #fbf5ea); }
.cs-card-guoren .cs-card-title { color: #7a4f24; }

/* 通鉴常识：分类徽章 + 子筛选 chips；微言常识：反思卡片 */
.cs-tj-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.cs-chip { font-size: 13px; padding: 5px 13px; border-radius: 999px; border: 1px solid #e0d2b4; background: #fff; color: #6b5a38; cursor: pointer; transition: all .15s; }
.cs-chip:hover { border-color: #cdb588; }
.cs-chip.active { background: #B5763A; border-color: #B5763A; color: #fff; }
.cs-chip-cnt { font-size: 11px; opacity: .7; margin-left: 5px; }
.cs-badge { align-self: flex-start; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; margin-bottom: 6px; }
.cs-badge-hum { background: #f3e6d2; color: #8a5a26; }
.cs-badge-sci { background: #d8e9e2; color: #2f6b54; }
.cs-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cs-card-head .cs-badge { margin-bottom: 0; }
.cs-card-weiyan { border-left: 3px solid #7a5a8a; background: linear-gradient(180deg, #fffdfb, #f6f1f9); }
.cs-card-weiyan .cs-card-title { color: #5b3d6e; }

@media (max-width: 720px) {
  .cs-layout { flex-direction: column; }
  .cs-side { width: 100%; flex: none; position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .cs-side-title { width: 100%; }
  .cs-nav { width: auto; margin-bottom: 0; }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-tabs { flex-direction: column; align-items: stretch; padding: 0 14px; }
  .cs-tab { width: 100%; }
  .cs-mode-desc { font-size: 13.5px; }
}
