/* ============================================================
   演示站专用：列表版式的骨架
   ------------------------------------------------------------
   为什么单独一个文件、只由 templates/demo/header.html 加载：
   这些类只在演示站用得上（11 套版式是"给人看能做成什么样"）。
   塞进 site.css 的话，产品站与每个客户的站点都会背上这几十行无用样式。

   比例盒一律用 padding-top 撑高度，不用 aspect-ratio：
   padding 那套从 IE 时代就能用，而 aspect-ratio 在几个仍在用的老内核上不生效，
   不生效的表现是"图片撑成 0 高、整版塌掉"，代价比多写一行大。
   ============================================================ */

/* ---------- 通用网格 ---------- */
.ly { display: grid; gap: 18px; }
.ly-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ly-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ly-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .ly-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ly-3, .ly-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 560px) {
  .ly-2, .ly-3, .ly-4 { grid-template-columns: 1fr; }
}

/* ---------- 比例盒 ---------- */
.rt { position: relative; overflow: hidden; border-radius: var(--r); background: #e8eff5; }
.rt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-32  { padding-top: 66.667%; }   /* 3:2  */
.rt-34  { padding-top: 133.333%; }  /* 3:4  */
.rt-43  { padding-top: 75%; }       /* 4:3  */
.rt-219 { padding-top: 42.857%; }   /* 21:9 */
.rt-11  { padding-top: 100%; }      /* 1:1  */

/* ---------- 卡片 ---------- */
.lc { display: block; color: inherit; }
.lc .rt { box-shadow: var(--sh-1); transition: transform .24s ease, box-shadow .24s ease; }
.lc:hover .rt { transform: translateY(-3px); box-shadow: var(--sh-2); }
.lc-t { font-size: 15px; font-weight: 600; margin: 11px 0 5px; line-height: 1.5; }
.lc:hover .lc-t { color: var(--brand); }
.lc-s { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0; }
.lc-m { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: #9db0c6; margin-top: 8px; }

/* ---------- 遮罩标题（标题压在图上） ---------- */
.lc-mask .rt::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6, 20, 34, .86) 0%, rgba(6, 20, 34, .38) 44%, rgba(6, 20, 34, 0) 74%);
}
.lc-mask .mc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 16px; }
.lc-mask .mc h3 { font-size: 15px; margin: 0 0 4px; color: #fff; line-height: 1.45; }
.lc-mask .mc p { font-size: 12.5px; margin: 0; color: rgba(255, 255, 255, .84); line-height: 1.6; }
.lc-mask:hover .mc h3 { color: #fff; }

/* ---------- 音视频角标 ---------- */
.mc-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .93);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(4, 20, 34, .3);
}
.mc-play::after {
  content: ''; margin-left: 4px;
  border-left: 13px solid var(--brand); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.mc-audio::after { border: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); margin: 0; }
.mc-badge, .mc-dur { position: absolute; z-index: 2; color: #fff; }
.mc-badge { left: 9px; top: 9px; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: rgba(6, 20, 34, .74); }
.mc-dur {
  right: 9px; bottom: 9px; padding: 1px 7px; border-radius: 4px; background: rgba(6, 20, 34, .8);
  font: 600 11.5px/1.65 ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- 横排（图左文右） ---------- */
.lr { display: grid; gap: 14px; }
.lr-i {
  display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  color: inherit;
}
.lr-i:hover { border-color: #cfe4f7; box-shadow: var(--sh-2); }
.lr-i h3 { font-size: 17px; margin: 2px 0 8px; }
.lr-i:hover h3 { color: var(--brand); }
@media (max-width: 760px) {
  .lr-i { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- 缩略墙（6 列） ---------- */
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.wall .lc-t { font-size: 12.5px; font-weight: 500; margin: 7px 0 0; }
.wall .rt { border-radius: 8px; }
@media (max-width: 1080px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 纯标题归档 ---------- */
.ar { border-top: 1px solid var(--line); }
.ar-i {
  display: flex; align-items: baseline; gap: 16px; padding: 13px 2px;
  border-bottom: 1px dashed var(--line); color: inherit;
}
.ar-d { flex: 0 0 96px; font: 600 12.5px/1.7 ui-monospace, Menlo, Consolas, monospace; color: #9db0c6; }
.ar-i h3 { flex: 1; font-size: 15px; font-weight: 500; margin: 0; }
.ar-i:hover h3 { color: var(--brand); }
.ar-t { flex: 0 0 auto; font-size: 12px; color: #9db0c6; }
@media (max-width: 560px) {
  .ar-i { flex-wrap: wrap; gap: 6px 12px; }
  .ar-d { flex: 0 0 auto; }
}

/* ============================================================
   详情页版式 —— ⚠️ 这一节是**两个主题共用**的，不是演示站专属
   ------------------------------------------------------------
   布局取「主内容 + 侧栏」的两栏，这是资源站最常见的一屏结构：
   正文与下载/价格在同一屏内，侧栏放次要信息。窄屏自动折成单栏。

   ⚠️⚠️ `.dt-*`（外加 `.rt-*`）是**共用片段**在用的类：
      templates/default/detail_head.html、detail_action.html、
      detail_files.html、member_gate.html 都长在这些类上，
      而默认主题（产品站）也 include 这些片段 ——
      所以默认主题的 header 同样加载本文件（见 templates/default/header.html）。

   历史：这些类原本只写在演示主题里，于是"搬到共用片段"的每一次尝试
   都会让产品站上的那一块**有 DOM、没样式**（同 .mb-* 的两回，见 site.css 里的说明）。
   与其把这一节再抄一份到 site.css（两份必然分叉），不如让两个主题加载同一份。

   本文件里真正演示站专属的只有列表版式那一组（.ly/.lc/.mc/.lr/.wall/.ar/.lx）。
   ============================================================ */

.dt-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
@media (max-width: 1000px) { .dt-wrap { grid-template-columns: 1fr; } }

/* ---------- 顶部资源信息卡 ---------- */
.dt-card {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; margin-bottom: 20px;
}
@media (max-width: 700px) { .dt-card { grid-template-columns: 1fr; gap: 14px; } }
.dt-card h1 { font-size: 22px; line-height: 1.4; margin: 0 0 10px; }
.dt-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: #8fa3b8; margin-bottom: 12px; }
.dt-meta .dt-cat { padding: 2px 10px; border-radius: 999px; background: var(--grad-soft, #eaf4fd); color: var(--brand); font-weight: 600; }

/* 价格区 */
.dt-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.dt-price { font: 700 26px/1.1 ui-monospace, Menlo, Consolas, monospace; color: #d5483c; }
.dt-was { font-size: 14px; color: #9db0c6; text-decoration: line-through; }
.dt-free { font: 700 20px/1.2 inherit; color: #0f9d58; }
.dt-off { font-size: 12px; font-weight: 700; color: #fff; background: #d5483c; border-radius: 4px; padding: 3px 7px; }

/* 按钮组 */
.dt-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dt-btns .btn { min-width: 132px; justify-content: center; }

/* 文件信息（键值对） */
.dt-files { border-top: 1px dashed var(--line); padding-top: 12px; }
.dt-file { display: flex; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dt-file:last-child { border-bottom: 0; }
.dt-file b { flex: 0 0 92px; color: #8fa3b8; font-weight: 500; }

/* 角标（免费 / VIP / 折扣 / 精品） */
.dt-tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dt-tag { font: 600 11.5px/1.7 inherit; padding: 2px 9px; border-radius: 4px; }
.dt-tag.free { background: #e7f6ed; color: #0f7a44; }
.dt-tag.vip  { background: #fff4e0; color: #b26a00; }
.dt-tag.hot  { background: #fdecea; color: #c0392b; }
.dt-tag.new  { background: #eaf4fd; color: #0b62a4; }

/* ---------- tab 切换（纯 CSS，不需要 JS） ---------- */
.dt-tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dt-radio { position: absolute; opacity: 0; pointer-events: none; }
.dt-nav { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dt-nav label {
  cursor: pointer; padding: 9px 16px; font-size: 14px; font-weight: 600; color: #7288a0;
  border-radius: 8px 8px 0 0; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px;
}
.dt-nav label:hover { color: var(--brand); }
.dt-pane { display: none; padding: 20px 22px 24px; }
/* 选中态：单选框 + label 必须相邻，这是纯 CSS tab 的全部机关 */
#dt-1:checked ~ .dt-nav label[for="dt-1"],
#dt-2:checked ~ .dt-nav label[for="dt-2"],
#dt-3:checked ~ .dt-nav label[for="dt-3"] {
  color: var(--brand); background: #fff; border-color: var(--line); border-bottom-color: #fff;
}
#dt-1:checked ~ .dt-body > .dt-p1,
#dt-2:checked ~ .dt-body > .dt-p2,
#dt-3:checked ~ .dt-body > .dt-p3 { display: block; }

/* ---------- 播放器位 ---------- */
.dt-player { position: relative; border-radius: var(--r); overflow: hidden; background: #0b1b2b; margin-bottom: 18px; }
.dt-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.dt-player .ph { position: relative; padding-top: 56.25%; }
.dt-player .big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 36px rgba(0,0,0,.4);
}
.dt-player .big-play::after {
  content: ''; margin-left: 6px;
  border-left: 20px solid var(--brand); border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.dt-player .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 18px;
  color: #fff; background: linear-gradient(to top, rgba(4,14,24,.86), rgba(4,14,24,0));
  font-size: 13.5px;
}
/* 剧集 / 章节列表 */
.dt-ep { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.dt-ep a {
  display: block; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: inherit; text-align: center; background: #fff;
}
.dt-ep a:hover { border-color: var(--brand); color: var(--brand); }
.dt-ep a .n { display: block; font: 600 11px/1.6 ui-monospace, Menlo, Consolas, monospace; color: #9db0c6; }

/* ---------- 图集网格 ---------- */
.dt-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.dt-gal .rt { background: #e8eff5; }

/* ---------- 侧栏 ---------- */
.dt-side { display: grid; gap: 16px; }
.dt-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.dt-box h3 { font-size: 14px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dt-box ul { list-style: none; margin: 0; padding: 0; }
.dt-box li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.6; }
.dt-box li:last-child { border-bottom: 0; padding-bottom: 0; }
.dt-box li a { color: inherit; }
.dt-box li a:hover { color: var(--brand); }
.dt-box li .d { display: block; font-size: 11.5px; color: #9db0c6; margin-top: 3px; }
.dt-stat { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; }
.dt-stat b { font: 600 13px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--brand); }

/* ---------- 杂志式双栏正文 ---------- */
.dt-2col { column-count: 2; column-gap: 34px; }
@media (max-width: 820px) { .dt-2col { column-count: 1; } }
.dt-2col h2 { break-after: avoid; }
.dt-2col img { width: 100%; }

/* ---------- 版权 / 免责 ---------- */
.dt-copy {
  margin-top: 22px; padding: 14px 16px; border-radius: var(--r);
  background: #f5f8fb; border: 1px dashed #d7e3ee; font-size: 12.5px; color: #6b7f93; line-height: 1.85;
}

/* ---------- 统一标题区与下载区 ----------
   对应两个共用片段：templates/default/detail_head.html、detail_action.html。
   ⚠️ 九套详情版式都长在这两个片段上，所以这里的任何改动都是**全站同时**生效 ——
      这也正是把它们抽出来的目的（以前九套各写一份，改一处得找九处）。 */
.dt-cover { margin-bottom: 18px; border-radius: var(--r); overflow: hidden; background: #e8eff5; }
/* max-height 让宽幅头图和卡片缩略图都能用同一个类：不设的话一张 21:9 的头图会吃掉整屏 */
.dt-cover img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.dt-head {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 18px;
}
.dt-head h1 { margin: 0 0 10px; }
.dt-sum { font-size: 14px; color: var(--ink-2); line-height: 1.85; margin: 12px 0 0; }

.dl-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 20px; }
.dl-h {
  display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.dl-h svg { width: 17px; height: 17px; flex: none; color: var(--brand); }
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fbfdff;
}
.dl-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13.5px; }
/* 文件名可能很长（中文名 + 版本号），允许折行而不是把按钮挤出容器 */
.dl-info b { font-weight: 600; word-break: break-all; }
.dl-note { font-size: 12.5px; color: var(--muted); }
.dl-code { font-size: 12.5px; color: #b26a00; }
.dl-code code { background: #fff4e0; border-radius: 4px; padding: 1px 6px; font-size: 12.5px; }
.dl-act { flex: none; }
.dl-act .btn { min-width: 104px; justify-content: center; }
.dl-hint {
  display: flex; gap: 7px; align-items: flex-start; margin-top: 14px;
  font-size: 12.5px; color: #6b7f93; line-height: 1.85;
}
.dl-hint .iw { margin-top: 3px; color: #9db0c6; }

/* 评论区与标签行的位置（九套版式统一）：
   以前这些间距写在各模板的行内 style 上，于是每套版式的评论区高低都不一样。 */
.dt-com { margin-top: 22px; }
.dt-foot-tags { margin: 16px 0 0; }

/* ---------- 视频版式：播放器在左，购买区与剧集在右 ----------
   资源站最常见的一屏：左边看片，右边上半是价格与购买，下半是剧集列表。
   看剧的人先找"下一集在哪"、再决定买不买 —— 两件事都不该让他往下翻正文。

   ⚠️ 右栏比普通侧栏宽（360 而不是 300）：购买区里有那张"按等级列价"的表，
      三列挤在 300px 里会把「比原价省」那一列压没。 */
.mv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
@media (max-width: 1080px) { .mv-wrap { grid-template-columns: 1fr; } }
/* 窄栏里的表格与按钮收一收：字号不变小到读不清，但内边距要减 */
.mv-side .lv-table { font-size: 12.5px; }
.mv-side .lv-table th, .mv-side .lv-table td { padding: 8px 9px; }
.mv-side .buy-price .now { font-size: 22px; }
.mv-side .buy-form { gap: 8px; }
.mv-side .buy-form .btn { width: 100%; }
.mv-side .dl-act .btn { width: 100%; }
.mv-side .dt-ep { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.mv-side .unlock-file { flex-wrap: wrap; }
.mv-player { margin-bottom: 0; position: relative; }
/* 播放器上那行状态（"正在准备播放…" / 出错说明）。
   受控播放是"先领票据、再拿地址"，中间有一小段等待 —— 必须让用户看到在做什么，
   否则点开是一片黑，看着像坏了。 */
.mv-note {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; z-index: 3;
  font-size: 12.5px; color: #d6e6f4; background: rgba(4, 14, 24, .74);
}
.mv-note:empty { display: none; }

/* ---------- 侧栏购买卡（照日主题的资源页做的）----------
   窄栏里的价格**写成三行文案**而不是表格：三列表格在 300px 里会被压没，
   而"哪一档多少钱"这件事本来用一句话就说清了。 */
.buycard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.bc-h {
  display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.bc-h svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.bc-prices { list-style: none; margin: 0; padding: 0; }
.bc-prices li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 9px 10px; font-size: 13px; color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.bc-prices li:last-child { border-bottom: 0; }
.bc-prices li b { font: 600 13.5px/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); }
/* 当前用户那一行高亮 + 左侧竖条：一眼找到"我的价" */
.bc-prices li.me { background: #f2f9ff; border-radius: var(--r); box-shadow: inset 3px 0 0 var(--brand); }
.bc-prices li.me b { color: var(--brand); }
.bc-prices li.free b { color: #0f7a44; font-weight: 700; }
.bc-tip { font-size: 12.5px; color: #6b7f93; line-height: 1.8; margin: 10px 0 0; }
.bc-count {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6b7f93;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.bc-count b { color: var(--brand); font-weight: 700; }
.bc-count .iw { color: #9db0c6; }
.bc-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bc-qty { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.bc-qty input { width: 84px; }
.bc-form .btn { width: 100%; justify-content: center; }
.bc-out {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--r); font-size: 12.5px;
  background: #fff7f6; color: #a3352b; line-height: 1.75;
}

/* ---------- 上一篇 / 下一篇（主栏底部）----------
   ⚠️ 用 grid 两列而不是 flex + space-between：
      只有一篇时 flex 会把那一个挤在左半边（右边空一大块），
      网格下它会自然占满整行。 */
.dt-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
@media (max-width: 700px) { .dt-pn { grid-template-columns: 1fr; } }
.dt-pn .pn {
  display: flex; flex-direction: column; gap: 5px; padding: 13px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  color: inherit; transition: border-color .16s, box-shadow .16s;
}
.dt-pn .pn:hover { border-color: #cfe4f7; box-shadow: var(--sh-1); }
.dt-pn .pn-n { text-align: right; }
.dt-pn .pn-k { font-size: 12px; color: var(--muted); }
.dt-pn .pn b { font-size: 14px; font-weight: 600; line-height: 1.55; }
.dt-pn .pn:hover b { color: var(--brand); }
/* 只剩一篇时让它横跨整行（grid 里单独一个会自动占第一列，所以显式指定） */
.dt-pn .pn:only-child { grid-column: 1 / -1; }

/* ---------- 相关文章网格（主栏底部）---------- */
.dt-rel { margin-top: 30px; }
.rel-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.rel-h h2 { margin: 0; }
.rel-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .rel-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rel-g { grid-template-columns: 1fr; } }
.rel-c { display: block; color: inherit; }
.rel-c .rt { transition: transform .22s ease, box-shadow .22s ease; box-shadow: var(--sh-1); }
.rel-c:hover .rt { transform: translateY(-3px); box-shadow: var(--sh-2); }
/* 没有封面图时给一块素色底，别让网格里出现一个"洞" */
.rel-ph { background: linear-gradient(135deg, #eef4f9, #e3edf5); }
.rel-c h3 { font-size: 14.5px; font-weight: 600; line-height: 1.55; margin: 10px 0 5px; }
.rel-c:hover h3 { color: var(--brand); }
.rel-m { font-size: 12px; color: var(--muted); }

/* ---------- 侧栏热门排行（ol，序号自排）---------- */
.rk { list-style: none; margin: 0; padding: 0; counter-reset: rk; }
.rk li {
  display: flex; align-items: baseline; gap: 8px; padding: 8px 0;
  border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.6;
}
.rk li:last-child { border-bottom: 0; padding-bottom: 0; }
.rk li a { flex: 1; color: inherit; }
.rk li a:hover { color: var(--brand); }
/* 前三名给个强调色：排行榜的意义就在"头部" */
.rk-n {
  flex: none; width: 17px; height: 17px; border-radius: 4px; text-align: center;
  font: 600 11px/17px ui-monospace, Menlo, Consolas, monospace;
  background: #f0f4f8; color: #8fa3b8;
}
.rk li:nth-child(1) .rk-n { background: #fdecea; color: #c0392b; }
.rk li:nth-child(2) .rk-n { background: #fff4e0; color: #b26a00; }
.rk li:nth-child(3) .rk-n { background: #eaf4fd; color: #0b62a4; }
.rk-h { flex: none; font-size: 11.5px; color: #9db0c6; }

/* ---------- 会员价 / 会员门槛 / 等级表 ----------
   ⚠️ 这一组**已经搬到 site.css**，不要在演示主题的样式表里重新定义。
   原因：用到它们的 shop_buy.html、member_gate.html 是**两个主题共用**的片段，
   而产品站（default 主题）只加载 site.css —— 留在这里的话，
   产品站的会员价徽标与会员门槛挡板会"有 DOM、没样式"，两个站长得不一样。 */

/* 版本记录：多行文本，一行一条。等宽字体让版本号与日期对齐 */
.ver-log{
  font:13px/2 ui-monospace,Menlo,Consolas,monospace; color:#475569;
  white-space:pre-wrap; margin:0;
}

/* ---------- 版式库总览 ---------- */
.lx-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.lx-c {
  display: block; color: inherit; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lx-c:hover { border-color: #cfe4f7; box-shadow: var(--sh-2); transform: translateY(-2px); }
.lx-k { font: 600 11px/1.7 ui-monospace, Menlo, Consolas, monospace; color: var(--brand); letter-spacing: .05em; }
.lx-c h3 { font-size: 15px; margin: 5px 0 6px; }
.lx-c p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.75; }
.lx-n { font-size: 12px; color: #9db0c6; margin-top: 9px; display: block; }
