/* 资料站主题（templates/resource）— 2026-11-13 前端重构
 * 设计语言：深青 × 墨色 × 米白。克制、留白、大字号层级，移动端优先。
 * 主色深青 #0E4F5C（医疗＋教务都稳得住），价格／重点用沉稳琥珀 #B7791F。
 * 注意：按钮类链接的颜色必须用 .res-theme a.类名（0,2,1）写死，
 * 全局 .res-theme a（0,1,1）会盖掉单 class 的 color，白字变靛蓝字、按钮上字看不见。
 * data-popup 的 JSON 靠模板默认转义，绝不用 |raw。
 */
:root {
    --res-primary: #0e4f5c;
    --res-primary-deep: #093642;
    --res-primary-ink: #0a2e35;
    --res-teal-soft: #e6f2f4;
    --res-teal-line: #c4dee2;
    --res-slate: #24405c;
    --res-slate-soft: #e9eef4;
    --res-accent: #b7791f;
    --res-accent-soft: #fdf3e3;
    --res-danger: #b42318;
    --res-ink: #101828;
    --res-ink-2: #344054;
    --res-muted: #667085;
    --res-faint: #98a2b3;
    --res-line: #e4e7ec;
    --res-line-soft: #eaecf0;
    --res-bg: #f8f9fb;
    --res-card: #ffffff;
    --res-radius: 16px;
    --res-radius-sm: 10px;
    --res-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .05);
    --res-shadow-lg: 0 16px 40px rgba(16, 24, 40, .14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.res-theme { margin: 0; background: var(--res-bg); color: var(--res-ink);
    font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.res-theme a { color: var(--res-primary); text-decoration: none; }
.res-theme a:hover { text-decoration: underline; }
.res-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { display: block; }

/* 根级防横向溢出：手机端绝不允许左右滑（2026-11-14 主人报手机端能左右滑、v16 的 clip 仍被移位）。
   双写兜底：先 hidden（全浏览器都认），再 clip（新浏览器用 clip、不建滚动容器、不影响吸顶 topbar）； */
html, body { overflow-x: hidden; overflow-x: clip; }

/* ---------- 顶栏：白底、吸顶、品牌左、频道入口右 ---------- */
.res-topbar { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--res-line); backdrop-filter: blur(6px); }
.res-topbar-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.res-brand { display: flex; align-items: center; gap: 12px; color: var(--res-ink); }
.res-brand:hover { text-decoration: none; }
.res-brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px;
    background: var(--res-primary); color: #fff; display: flex; align-items: center;
    justify-content: center; font-size: 21px; font-weight: 800; line-height: 1; }
.res-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.res-brand-text strong { font-size: 19px; font-weight: 800; color: var(--res-ink); letter-spacing: .02em; }
.res-brand-text small { font-size: 12px; color: var(--res-muted); }
.res-nav-pills { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.res-nav-pills a { display: inline-block; padding: 8px 18px; border-radius: 999px;
    border: 1px solid var(--res-line); background: #fff; color: var(--res-ink-2);
    font-size: 15px; font-weight: 600; white-space: nowrap; }
.res-nav-pills a:hover { background: var(--res-teal-soft); border-color: var(--res-teal-line);
    color: var(--res-primary); text-decoration: none; }
.res-account { font-size: 14px; color: var(--res-muted); white-space: nowrap; }
.res-account:hover { color: var(--res-primary); }
/* 加入会员（2026-11-14 主人令：顶栏“我的账户”左侧）：金底 pill，与会员徽标同色，好认 */
.res-join-vip { display: inline-block; padding: 8px 16px; border-radius: 999px;
    background: #f7c948; color: #6b4a00; font-size: 14px; font-weight: 800; white-space: nowrap; }
.res-theme a.res-join-vip:hover { background: #f2bd2e; color: #6b4a00; text-decoration: none; }

/* ---------- 首页 Hero：深青底、大标题、大搜索框（2026-11-14 主人令收紧：上下留白减半） ---------- */
.res-hero { background: linear-gradient(135deg, #0a2e35 0%, #0e4f5c 58%, #12606e 100%);
    color: #fff; text-align: center; padding: 36px 20px 32px; }
.res-hero h1 { margin: 0 0 10px; font-size: 42px; line-height: 1.25; font-weight: 800; letter-spacing: .01em; }
.res-hero p { margin: 0 0 20px; color: #c4dee2; font-size: 17px; }
.res-hero-search { display: flex; max-width: 640px; margin: 0 auto;
    background: #fff; border-radius: 999px; padding: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.res-hero-search input { flex: 1; border: 0; outline: none; font-size: 16px;
    padding: 10px 18px; border-radius: 999px; min-width: 0; color: var(--res-ink); background: transparent; }
.res-hero-search input::placeholder { color: var(--res-faint); }
.res-hero-search button { border: 0; border-radius: 999px; padding: 12px 30px;
    background: var(--res-primary); color: #fff; font-size: 16px; font-weight: 700;
    cursor: pointer; white-space: nowrap; }
.res-hero-search button:hover { background: var(--res-primary-deep); }
.res-hero-hint { margin-top: 14px; font-size: 14px; color: #9fc6cc; }
.res-hero-hint a { color: #fff; font-weight: 600; }

/* ---------- 频道入口首页（Hero + 两大频道卡片） ---------- */
/* 首页紧凑化（2026-11-14 主人令整个首页收紧）：各段上下留白统一收窄 */
.ch-hero { margin: 0; padding: 28px 0 8px; display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.ch-hero-left { flex: 1; min-width: 280px; }
.ch-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .18em;
    color: var(--res-accent); text-transform: uppercase; }
.ch-hero h1 { margin: 0 0 10px; font-size: 40px; line-height: 1.25; color: var(--res-ink); font-weight: 800; letter-spacing: .01em; }
.ch-hero-desc { margin: 0; font-size: 16px; line-height: 1.8; color: var(--res-muted); max-width: 560px; }
.ch-hero-right { flex: none; width: 320px; display: grid; gap: 10px; }
.ch-feat { background: #fff; border: 1px solid var(--res-line); border-radius: var(--res-radius-sm);
    padding: 13px 16px; font-size: 15px; font-weight: 600; color: var(--res-ink-2); }
.ch-feat::before { content: "✓"; color: var(--res-primary); font-weight: 800; margin-right: 8px; }
.ch-cards { margin: 20px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ch-card { position: relative; overflow: hidden; background: var(--res-card);
    border: 1px solid var(--res-line); border-radius: var(--res-radius); padding: 24px 28px 22px;
    box-shadow: var(--res-shadow); min-width: 0; }
.ch-card::before { content: ""; display: block; height: 4px; position: absolute;
    top: 0; left: 0; right: 0; background: var(--res-primary); }
.ch-card:nth-child(2)::before { background: var(--res-slate); }
/* 卡片右上角数字：图上须看得清——改白字＋深色投影（浏览器复验：浅色字在亮图上几乎看不见） */
.ch-card-num { position: absolute; top: 14px; right: 22px; font-size: 44px; font-weight: 800;
    line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .65), 0 0 3px rgba(0, 0, 0, .45); }
/* 频道卡片顶部图片（2026-11-14 主人令：一眼识别是什么资料）：通栏横幅，盖住顶部色条 */
.ch-card-img { display: block; width: calc(100% + 56px); height: 180px; object-fit: cover;
    object-position: center; margin: -24px -28px 20px;
    border-radius: var(--res-radius) var(--res-radius) 0 0; }
/* 医护图是 3:2、横幅只取中间 54% 高：上移取景窗，露出护士头部（浏览器复验：头部曾被裁掉） */
.ch-card-img-yihu { object-position: center 10%; }
.ch-card:nth-child(2) .ch-card-num { color: #fff; }
.ch-card-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--res-primary); }
.ch-card:nth-child(2) .ch-card-eyebrow { color: var(--res-slate); }
.ch-card h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.35; color: var(--res-ink); font-weight: 800; }
.ch-card-desc { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: var(--res-muted); }
.ch-card-points { margin: 0 0 18px; padding: 0; list-style: none; }
/* 频道卡片子栏目 chips（2026-11-14 主人令：要点换成数据驱动的子栏目＋资料数，一眼看里面有什么） */
.ch-card-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.res-theme a.ch-chip { display: inline-block; padding: 5px 12px; border-radius: 999px;
    background: #eef4f5; border: 1px solid var(--res-line); color: var(--res-ink-2);
    font-size: 13px; font-weight: 600; line-height: 1.5; }
.res-theme a.ch-chip:hover { background: var(--res-primary); border-color: var(--res-primary);
    color: #fff; text-decoration: none; }
.ch-card:nth-child(2) .res-theme a.ch-chip:hover { background: var(--res-slate); border-color: var(--res-slate); }
.ch-card-count { margin: 0 0 18px; font-size: 13px; color: var(--res-faint); }
.ch-card-points li { position: relative; padding-left: 18px; margin-bottom: 8px;
    font-size: 15px; color: var(--res-ink-2); }
.ch-card-points li::before { content: ""; position: absolute; left: 2px; top: .62em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--res-primary); }
.ch-card:nth-child(2) .ch-card-points li::before { background: var(--res-slate); }
.ch-card-btn { display: inline-block; padding: 11px 24px; border-radius: 999px;
    background: var(--res-primary); color: #fff; font-size: 15px; font-weight: 700; }
/* 按钮类链接的颜色必须用 .res-theme a.类名 写死（0,2,1），否则会被全局 .res-theme a 盖掉 */
.res-theme a.ch-card-btn { background: var(--res-primary); color: #fff; }
.res-theme a.ch-card-btn:hover { background: var(--res-primary-deep); color: #fff; text-decoration: none; }
.ch-card:nth-child(2) .res-theme a.ch-card-btn,
.res-theme a.ch-card-btn-slate { background: var(--res-slate); color: #fff; }
.ch-card:nth-child(2) .res-theme a.ch-card-btn:hover { background: #1a3249; color: #fff; }

/* ---------- 区块标题 ---------- */
.res-section { margin: 44px 0 16px; display: flex; align-items: baseline; gap: 12px; }
.res-section h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .01em; }
.res-section .res-more { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- 资料卡片网格（fallback 视图共用） ---------- */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.res-card { background: var(--res-card); border: 1px solid var(--res-line);
    border-radius: var(--res-radius); overflow: hidden; display: block; box-shadow: var(--res-shadow); }
.res-card:hover { text-decoration: none; border-color: var(--res-teal-line);
    box-shadow: var(--res-shadow-lg); }
.res-card-thumb { aspect-ratio: 16 / 9; background: #e2e8f0; overflow: hidden; }
.res-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-card-body { padding: 14px 16px 16px; }
.res-card-title { font-size: 15px; font-weight: 700; color: var(--res-ink);
    line-height: 1.5; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-card-meta { font-size: 13px; color: var(--res-muted); }
.res-card-foot { display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; gap: 10px; }
.res-price { font-weight: 800; color: var(--res-accent); }
.res-free { font-weight: 800; color: var(--res-primary); }
.res-hits { font-size: 13px; color: var(--res-muted); }

/* ---------- 两大栏目卡片（旧版 fallback 共用） ---------- */
.res-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.res-col-card { display: flex; gap: 14px; align-items: flex-start; background: var(--res-card);
    border: 1px solid var(--res-line); border-radius: var(--res-radius); padding: 20px; box-shadow: var(--res-shadow); }
.res-col-card:hover { text-decoration: none; border-color: var(--res-primary); }
.res-col-card:nth-child(2) { border-top: 4px solid var(--res-accent); }
.res-col-card:nth-child(1) { border-top: 4px solid var(--res-primary); }
.res-col-icon { width: 52px; height: 52px; flex: none; border-radius: 12px;
    background: var(--res-teal-soft); display: flex; align-items: center; justify-content: center; }
.res-col-icon svg { width: 30px; height: 30px; }
.res-col-card h2 { margin: 0 0 4px; font-size: 20px; color: var(--res-ink); }
.res-col-card p { margin: 0; font-size: 14px; color: var(--res-muted); }
.res-col-go { margin-top: 8px; font-size: 14px; color: var(--res-primary); font-weight: 700; }

/* ---------- 首页最新／热门资料行 ---------- */
.res-latest { margin: 0 0 8px; display: grid; gap: 12px; }
.res-rank { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--res-teal-soft);
    color: var(--res-primary); display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; margin-top: 2px; }
.res-rank-top { background: var(--res-accent); color: #fff; }

/* ---------- 列表页 ---------- */
.res-cate-head { background: #fff; border-bottom: 1px solid var(--res-line); padding: 36px 0 28px; }
/* 栏目头图背景（2026-11-14 主人令）：有图时图片铺满 + 深色罩，文字改白字保证可读；无图回退上面纯色 */
.res-cate-head.has-bg { background-size: cover; background-position: center; position: relative; border-bottom: none; }
.res-cate-head.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8, 38, 44, .55), rgba(8, 38, 44, .68)); }
.res-cate-head.has-bg .res-wrap { position: relative; z-index: 1; }
.res-cate-head.has-bg h1, .res-cate-head.has-bg p, .res-cate-head.has-bg .res-crumb, .res-cate-head.has-bg .res-crumb a { color: #fff; }
.res-cate-head.has-bg .res-crumb a { text-decoration: underline; text-underline-offset: 2px; }
.res-cate-head h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: .01em; }
.res-cate-head p { margin: 0; color: var(--res-muted); font-size: 15px; }
.res-crumb { font-size: 13px; color: var(--res-muted); margin-bottom: 12px; }
.res-crumb a { color: var(--res-muted); }
.res-cate-head .res-hero-search { margin: 20px 0 0; box-shadow: 0 4px 16px rgba(16, 24, 40, .08);
    border: 1px solid var(--res-line); }
.res-cate-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; align-items: center; }
.res-cate-chips .res-cate-label { font-size: 14px; font-weight: 700; color: var(--res-ink-2); margin-right: 4px; }
.res-cate-chip { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 14px;
    font-weight: 600; background: #fff; border: 1px solid var(--res-line); color: var(--res-ink-2); }
.res-theme a.res-cate-chip:hover { border-color: var(--res-primary); color: var(--res-primary); text-decoration: none; }
.res-theme a.res-cate-chip.is-active { background: var(--res-primary); border-color: var(--res-primary); color: #fff; }

/* 分类导航 Tab＋药丸（2026-11-14 主人令按 yihuziliao.com 改，替掉筛选白卡）：
   顶 Tab 选中为深青底白字药丸；药丸行只显示激活的那个面板；二级科室行上加虚线分隔。 */
.res-cat-nav { margin: 20px 0; }
.res-cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.res-cat-tab { display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: 15px;
    font-weight: 700; background: #fff; border: 1px solid var(--res-line); color: var(--res-ink-2);
    cursor: pointer; font-family: inherit; }
.res-cat-tab:hover { border-color: var(--res-primary); color: var(--res-primary); }
.res-theme a.res-cat-tab:hover { text-decoration: none; }
.res-cat-tab.is-active { background: var(--res-primary); border-color: var(--res-primary); color: #fff; }
.res-cat-panels { margin-top: 14px; }
.res-cat-panel { display: none; }
.res-cat-panel.is-active { display: block; }
.res-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.res-cat-pills-sub { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--res-line); }
.res-cat-pills-label { font-size: 14px; font-weight: 700; color: var(--res-ink-2); margin-right: 2px; }
.res-cat-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 14px;
    font-weight: 600; background: #fff; border: 1px solid var(--res-line); color: var(--res-ink-2); }
.res-theme a.res-cat-pill:hover { border-color: var(--res-primary); color: var(--res-primary); text-decoration: none; }
.res-theme a.res-cat-pill.is-active { background: var(--res-primary); border-color: var(--res-primary); color: #fff; }

/* 筛选面板 */
.res-facets { margin: 20px 0; padding: 20px 22px; background: #fff;
    border: 1px solid var(--res-line); border-radius: var(--res-radius); box-shadow: var(--res-shadow); }
.res-selected { margin-bottom: 12px; font-size: 14px; color: var(--res-ink-2);
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.res-selected-chip { display: inline-block; background: var(--res-primary); color: #fff;
    border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.res-clear-link { font-size: 13px; font-weight: 600; margin-left: 6px; }
.res-facet-dim { margin: 12px 0; font-size: 14px; line-height: 2.1; }
.res-facet-label { font-weight: 800; color: var(--res-ink); margin-right: 10px; white-space: nowrap; }
.res-tag { display: inline-block; margin: 2px 6px 2px 0; padding: 4px 13px; border-radius: 999px;
    font-size: 13px; font-weight: 600; background: #f2f4f7; color: var(--res-ink-2);
    border: 1px solid var(--res-line); line-height: 1.6; }
.res-theme a.res-tag:hover { border-color: var(--res-primary); color: var(--res-primary); text-decoration: none; }
.res-theme a.res-tag.is-active { background: var(--res-primary); border-color: var(--res-primary); color: #fff; }
/* 筛选面板“更多”折叠（details/summary，纯 HTML，无 JS）：
   每维度默认只显示前 8 个热门标签，其余收进 details，点“更多”展开、点“收起”合上。 */
.res-facet-more { display: inline; }
.res-facet-more summary { display: inline-block; margin: 2px 6px 2px 0; padding: 4px 13px;
    border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; background: #fff;
    color: var(--res-primary); border: 1px dashed var(--res-teal-line); list-style: none; line-height: 1.6; }
.res-facet-more summary::-webkit-details-marker { display: none; }
.res-facet-more summary::marker { display: none; }
.res-facet-more .less-label { display: none; }
.res-facet-more[open] .more-label { display: none; }
.res-facet-more[open] .less-label { display: inline; }

/* 列表行 */
.res-list { margin: 20px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* 网格图片卡（2026-11-14 主人定）：卡片竖排，大图在上、标题在下；桌面 4 列、中屏 3 列、手机 2 列 */
@media (max-width: 1100px) {
    .res-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.res-row { display: flex; flex-direction: column; gap: 0; background: var(--res-card); border: 1px solid var(--res-line);
    border-radius: var(--res-radius); padding: 0; overflow: hidden; box-shadow: var(--res-shadow); }
.res-row:hover { border-color: var(--res-teal-line); }
.res-row[data-popup] { cursor: pointer; }
.res-row-badge { flex: none; padding-top: 3px; }
/* 网格图片卡缩略图（2026-11-14 主人定）：卡片顶部通栏大图 4:3，文档预览图取顶部（标题处）裁切，无图用格式占位；整图可点开弹窗 */
.res-row-thumb { flex: none; width: 100%; aspect-ratio: 4 / 3; border-radius: 0; overflow: hidden;
    background: var(--res-teal-soft); display: flex; align-items: center; justify-content: center; }
.res-row-thumb-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.res-theme a.res-row-thumb-link { text-decoration: none; }
.res-row-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.res-thumb-fmt { font-size: 15px; font-weight: 800; color: var(--res-primary); letter-spacing: .04em; }
.res-row-body { min-width: 0; flex: 1; padding: 16px 18px 18px; display: flex; flex-direction: column; }
.res-fmt { display: inline-block; min-width: 46px; text-align: center; padding: 5px 10px;
    border-radius: 8px; background: var(--res-teal-soft); color: var(--res-primary);
    font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.res-row-body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.45; font-weight: 700; }
.res-row-body h3 a { color: var(--res-ink); }
.res-row-body h3 a:hover { color: var(--res-primary); }
/* “已下载 X 次”不拆行（2026-11-14：4 列后卡片变窄，元信息行折行时会把“已下载”从中间拆开，整段不换行、整体移到下一行） */
.res-dl-count { white-space: nowrap; }
.res-row-desc { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--res-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-price-badge { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 2px 10px;
    border-radius: 999px; background: var(--res-accent-soft); color: var(--res-accent);
    font-size: 13px; font-weight: 800; }
.res-free-badge { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 2px 10px;
    border-radius: 999px; background: var(--res-teal-soft); color: var(--res-primary);
    font-size: 13px; font-weight: 800; }
.res-file-name { font-size: 13px; color: var(--res-faint); overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.res-row-more { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; margin-left: auto; }
/* 卡片底行文件名已删（2026-11-14），“查看详情 →”靠 margin-left:auto 贴右 */
/* 卡片底行贴底（2026-11-14：元信息折行时“查看详情 →”高低不齐；body 改 flex 列、底行 margin-top:auto 吸底，padding-top 保 10px 间距） */
.res-row-body .res-card-foot { margin-top: auto; padding-top: 10px; }
.res-empty { text-align: center; color: var(--res-muted); padding: 56px 16px;
    background: var(--res-card); border: 1px dashed var(--res-line); border-radius: var(--res-radius); }
.res-pagination { margin: 24px 0 40px; text-align: center; }
/* 分页器实际输出 Bootstrap 结构 ul.pagination > li.page-item > a.page-link；本站不加载 Bootstrap，无此样式时默认竖排圆点列表（2026-11-14 主人报分页错位），这里按本站风格横排居中 */
.res-pagination ul.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.res-pagination .page-item { list-style: none; }
.res-pagination .page-link { display: inline-block; padding: 8px 14px; border: 1px solid var(--res-line); border-radius: 8px; background: #fff; font-size: 14px; }
.res-theme a.page-link { color: var(--res-ink-2); }
.res-theme a.page-link:hover { border-color: var(--res-primary); color: var(--res-primary); text-decoration: none; }
.res-pagination .page-item.active .page-link { background: var(--res-primary); border-color: var(--res-primary); color: #fff; font-weight: 700; }
.res-pagination .page-item.disabled .page-link { opacity: .45; pointer-events: none; }

/* ---------- 详情页 ---------- */
.res-detail { margin: 28px 0 40px; }
.res-detail h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.4; font-weight: 800; letter-spacing: .01em; }
/* 标题下轻量 meta 行（2026-11-15 内页重排）：格式 · 大小 · 下载量，纯文字、无边框；
   替代原来 5 个描边 chips（与右侧信息卡逐项重复，价格还出现 3 次）。 */
.res-detail-sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    font-size: 14px; color: var(--res-muted); margin-bottom: 20px; }
.res-detail-sub span + span::before { content: "·"; margin-right: 8px; color: var(--res-line); }
.res-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.res-chip { display: inline-block; padding: 5px 13px; border-radius: 999px; background: #fff;
    border: 1px solid var(--res-line); font-size: 13px; font-weight: 600; color: var(--res-ink-2); }
.res-chip a { color: var(--res-primary); font-weight: 700; }
.res-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.res-detail-main { min-width: 0; }
.res-detail-aside { min-width: 0; display: grid; gap: 20px; align-content: start;
    position: sticky; top: 20px; }
.res-info-card { background: var(--res-card); border: 1px solid var(--res-line);
    border-radius: var(--res-radius); padding: 20px 22px; box-shadow: var(--res-shadow); }
.res-info-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.res-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
    border-top: 1px solid var(--res-line-soft); font-size: 14px; }
.res-info-row:first-of-type { border-top: 0; }
.res-info-row span:first-child { color: var(--res-muted); flex: none; }
.res-info-row span:last-child { color: var(--res-ink); font-weight: 600; text-align: right;
    overflow: hidden; text-overflow: ellipsis; }
.res-info-price { font-size: 22px; font-weight: 800; color: var(--res-accent); }
.res-info-price.free { color: var(--res-primary); }
/* 侧栏标签卡（2026-11-15 主人令：标签从主栏移到右侧）：与资料信息卡同款，
   每维度一行（标签名＋药丸），行距收紧。 */
.res-tags-card .res-facet-dim { margin: 10px 0; line-height: 1.9; }
.res-tags-card .res-facet-dim:first-of-type { margin-top: 2px; }
.res-tags-card .res-facet-dim:last-child { margin-bottom: 2px; }
/* 下载/购买卡（2026-11-15 内页重排）：纵向分行，不再 flex-wrap 挤一团。
   价格大字置顶，邮箱整行，两个支付按钮并排等宽，会员入口单独一行。 */
.res-dl-box { background: #fff; border: 1px solid var(--res-line); border-left: 4px solid var(--res-primary);
    border-radius: var(--res-radius); padding: 22px 24px; margin: 0 0 28px;
    box-shadow: var(--res-shadow); }
.res-dl-main { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.res-dl-price-row { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.res-dl-price { font-size: 32px; font-weight: 800; color: var(--res-accent); line-height: 1.1; }
.res-dl-vip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--res-accent-soft);
    color: var(--res-accent); font-size: 13px; font-weight: 700; }
.res-dl-payrow { display: flex; gap: 12px; margin: 14px 0; }
.res-dl-payrow .res-dl-btn { flex: 1; text-align: center; }
.res-dl-payrow .res-buy-btn { flex: 1; margin-top: 0; padding: 13px 10px; font-size: 16px; }
.res-dl-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.res-dl-row .res-dl-member { margin-left: auto; }
.res-dl-member { font-size: 14px; font-weight: 700; color: var(--res-accent); white-space: nowrap; }
.res-dl-member:hover { text-decoration: underline; }
.res-dl-box p.res-dl-note { margin: 0 0 12px; }
.res-dl-box .res-guest-email { width: 100%; margin: 4px 0 0; }
/* 注意：必须用 .res-theme a.res-dl-btn（不能只写 .res-dl-btn）——全局
   .res-theme a（0,1,1）会盖掉单 class 的 color，白字变靛蓝字、按钮上字
   看不见。2026-11-12 实测：DOM 里有“免费下载”、视觉上空白按钮即因此。
   2026-11-15：直接支付弹窗触发按钮是 <button>，补一条同款 button 版
   （button 不受全局 a 规则影响，但统一样式、统一提权，省得以后再踩）。 */
.res-theme a.res-dl-btn, .res-theme button.res-dl-btn { display: inline-block; background: var(--res-primary); color: #fff;
    font-size: 17px; font-weight: 800; padding: 13px 32px; border-radius: 10px; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(14, 79, 92, .28); }
.res-theme button.res-dl-btn { border: 0; cursor: pointer; font-family: inherit; }
.res-theme a.res-dl-btn:hover, .res-theme button.res-dl-btn:hover { background: var(--res-primary-deep); color: #fff; text-decoration: none; }
.res-dl-note { font-size: 14px; color: var(--res-muted); line-height: 1.6; }
.res-dl-note a { font-weight: 600; }
/* 下载区“报告失效”改为弱化描边按钮，不与下载主按钮抢视觉 */
.res-dl-report { display: inline-block; padding: 9px 15px; background: #fff; color: var(--res-danger);
    border: 1px solid #fecdca; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; }
.res-dl-report:hover { background: #fef3f2; }
.res-dl-report-done { color: var(--res-muted); border-color: var(--res-line); cursor: default; }
.res-dl-report-done:hover { background: #fff; }
/* 付费购买按钮（访客邮箱购买）：微信绿／支付宝蓝，写死在 CSS，不用内联样式 */
.res-buy-btn { padding: 11px 22px; color: #fff; border: 0; border-radius: 10px;
    font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; white-space: nowrap; }
.res-buy-btn[data-pay-type="wxpay"] { background: #07c160; }
.res-buy-btn[data-pay-type="wxpay"]:hover { background: #06ad56; }
.res-buy-btn[data-pay-type="alipay"] { background: #1677ff; }
.res-buy-btn[data-pay-type="alipay"]:hover { background: #0e64d8; }
.res-guest-email { padding: 11px 14px; border: 1px solid var(--res-line); border-radius: 10px;
    width: 260px; max-width: 100%; margin-top: 8px; font-size: 15px; outline: none; }
.res-guest-email:focus { border-color: var(--res-primary); box-shadow: 0 0 0 3px var(--res-teal-soft); }
/* 内容预览：逐页图片纵向排列（对标白衣 PPT 的预览区）；点图进灯箱放大看。
   每页包一层 figure + 页码 caption，图本身不变（竖版 A4 是原稿比例）。 */
/* 预览提示（2026-11-15 主人令：“点击图片可放大查看”要做成按钮样式）：
   不再是裸灰字，改成可点的浅青胶囊按钮，点它直接从第 1 页打开灯箱。 */
.res-preview-hint-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
    margin: -6px 0 14px; background: var(--res-teal-soft); border: 1px solid var(--res-teal-line);
    border-radius: 999px; color: var(--res-primary); font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit; }
.res-preview-hint-btn:hover { background: #d8ebee; border-color: var(--res-primary); }
.res-preview-page { margin: 0 0 16px; }
.res-preview img { display: block; max-width: 720px; width: 100%; margin: 0 auto;
    border: 1px solid var(--res-line); border-radius: 10px; box-shadow: 0 2px 12px rgba(0, 0, 0, .07); cursor: zoom-in; }
.res-preview-page figcaption { text-align: center; font-size: 13px; color: var(--res-muted); margin-top: 8px; }
/* 侧栏购买卡（2026-11-15 主人令：付款部分放右侧第一位，侧栏最上方）：
   复用 .res-info-card 的白底圆角，价格略小于主栏购买框，按钮整行。 */
.res-buy-card .res-buy-card-price { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 2px 0 14px; }
.res-buy-card .res-dl-price { font-size: 26px; }
.res-buy-card .res-buy-card-btn { display: block; width: 100%; text-align: center; padding: 12px 16px; }
.res-buy-card .res-dl-member { display: block; margin-top: 12px; text-align: center; }
.res-buy-card .res-dl-row { margin-top: 12px; }

/* 直接支付弹窗（2026-11-15 主人令：按钮不要跳转、而是直接支付）：
   全屏遮罩＋居中对话框；游客在弹窗里填邮箱点微信/支付宝即下单，
   已登录直接点直链；×、点遮罩、ESC 都可关。 */
.res-pay-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.res-pay-modal[hidden] { display: none; }
.res-pay-overlay { position: absolute; inset: 0; background: rgba(10, 30, 35, .55); }
.res-pay-dialog { position: relative; background: #fff; border-radius: 14px; padding: 26px 26px 22px; width: 100%; max-width: 430px; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.res-pay-dialog h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.res-pay-dialog .res-dl-price { font-size: 28px; }
.res-pay-dialog .res-guest-email { width: 100%; margin: 4px 0 0; }
.res-pay-dialog .res-dl-payrow .res-pay-modal-btn { flex: 1; }
.res-pay-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--res-muted); cursor: pointer; padding: 4px 8px; }
.res-pay-close:hover { color: var(--res-ink); }
.res-pay-modal-btn { padding: 13px 10px; font-size: 16px; color: #fff; border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.res-pay-modal-btn[data-pay-type="wxpay"] { background: #07c160; }
.res-pay-modal-btn[data-pay-type="wxpay"]:hover { background: #06ad56; }
.res-pay-modal-btn[data-pay-type="alipay"] { background: #1677ff; }
.res-pay-modal-btn[data-pay-type="alipay"]:hover { background: #0e64d8; }
.res-pay-modal-btn:disabled { opacity: .6; cursor: default; }

/* 预览尾注（2026-11-15 主人令：文件名不要；提示要有合理样式＋提示按钮）：
   浅青底提示条，左深青竖线，左提示文字、右操作按钮（已购/免费是“下载文档”直下，
   未购付费是“购买下载”，点开直接支付弹窗，不再滚回购买框）。 */
.res-preview-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between;
    flex-wrap: wrap; background: var(--res-teal-soft); border: 1px solid var(--res-teal-line);
    border-left: 4px solid var(--res-primary);
    border-radius: var(--res-radius-sm); padding: 16px 20px; margin: 4px 0 0; }
.res-preview-foot p { margin: 0; font-size: 15px; font-weight: 600; color: var(--res-ink); line-height: 1.6; }
.res-preview-foot .res-dl-btn { flex: none; padding: 11px 26px; font-size: 16px; }
/* 相关资料（2026-11-15 内页重排）：从窄侧栏移到主栏底部，用 3 列网格；
   原来在 315px 侧栏里套 4 列网格，卡片被压成 60px 宽、标题一字一行竖排。 */
.res-list--rel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res-dl-price { font-size: 24px; font-weight: 800; color: var(--res-accent); }
.res-detail h2 { font-size: 21px; font-weight: 800; margin: 32px 0 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--res-line); letter-spacing: .01em; }
.res-detail-body { font-size: 16px; line-height: 1.85; color: var(--res-ink-2); }
.res-detail-body img { max-width: 100%; height: auto; }
.res-file-line { font-size: 14px; color: var(--res-muted); margin: 4px 0 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.res-kv th { text-align: left; color: var(--res-muted); font-weight: 400; width: 110px;
    padding: 8px 12px 8px 0; vertical-align: top; }
.res-kv td { padding: 8px 0; }
.res-chapters { list-style: none; margin: 0; padding: 0; }
.res-chapters li { padding: 10px 0; border-bottom: 1px solid var(--res-line); font-size: 15px; }
.res-chapters li:last-child { border-bottom: 0; }

/* ---------- 页脚 ---------- */
.res-footer { background: var(--res-primary-ink); color: #9fc6cc; margin-top: 32px; padding: 28px 0 24px; }
.res-footer a { color: #d3e8eb; }
.res-footer a:hover { color: #fff; }
.res-footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; }
.res-footer-copy { font-size: 13px; color: #7fa8ae; line-height: 1.8; }

/* ---------- 列表快速预览弹窗（白衣模式，2026-11-14 主人令按 baiyippt.cn 改两栏） ---------- */
.res-qv-overlay { position: fixed; inset: 0; background: rgba(10, 26, 30, .62); z-index: 9999;
    display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.res-qv-overlay[hidden] { display: none; }
.res-qv-dialog { position: relative; width: 100%; max-width: 1080px; height: min(84vh, 760px); display: flex; flex-direction: column; background: #fff;
    border-radius: 20px; padding: 24px 28px 28px; box-shadow: var(--res-shadow-lg); }
/* 弹窗头“预览”（白衣同款）：标题＋下方短横线 */
.res-qv-head { position: relative; flex: none; font-size: 20px; font-weight: 800; color: var(--res-ink);
    padding-bottom: 10px; margin-bottom: 18px; }
.res-qv-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px;
    background: var(--res-primary); border-radius: 2px; }
/* 弹窗主体两栏：左预览图（可上下滚）＋右信息（固定宽，可滚） */
.res-qv-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: row; gap: 24px; }
.res-qv-preview-col { flex: 1; min-width: 0; overflow-y: auto; }
.res-qv-preview-col img { display: block; width: 100%; border: 1px solid var(--res-line);
    border-radius: 10px; margin-bottom: 12px; cursor: zoom-in; }
.res-qv-info-col { flex: none; width: 380px; overflow-y: auto; display: flex; flex-direction: column; }
.res-qv-close { position: absolute; top: 12px; right: 16px; z-index: 5; border: 0; background: none;
    font-size: 30px; line-height: 1; color: var(--res-faint); cursor: pointer; padding: 8px 12px; }
.res-qv-close:hover { color: var(--res-ink); }
.res-qv-title-row { display: flex; align-items: flex-start; gap: 10px; }
.res-qv-title { flex: 1; min-width: 0; margin: 0; font-size: 20px; line-height: 1.4; font-weight: 800;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-qv-free-badge { flex: none; margin-top: 3px; background: #f7c948; color: #6b4a00;
    font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
/* 会员免费徽标（2026-11-14 主人令对标白衣）：付费资料标题旁金徽标，会员可免费下 */
.res-qv-vip-badge { flex: none; margin-top: 3px; background: #f7c948; color: #6b4a00;
    font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
/* 价格与会员提示同一行（2026-11-14 晚主人令）：会员提示放价格后面 */
.res-qv-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0 14px; }
.res-qv-price { font-size: 28px; font-weight: 800; color: var(--res-primary); margin: 0; }
.res-qv-member-note { display: inline; margin: 0; font-size: 13px; font-weight: 600; color: var(--res-primary); text-decoration: none; }
.res-qv-member-note:hover { color: var(--res-primary-deep); text-decoration: underline; }
/* 信息盒（白衣同款浅灰底）：ID / 格式 / 大小 / 已下载，两列 */
.res-qv-infobox { background: #f5f7f8; border-radius: 12px; padding: 14px 16px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; color: var(--res-ink); }
.res-qv-info-row span { color: var(--res-muted); }
.res-qv-desc { font-size: 14px; line-height: 1.8; color: var(--res-ink-2); margin: 14px 0 0; }
/* 使用权说明（2026-11-14 主人令对标白衣）：标签下方、按钮上方，小字灰字 */
.res-qv-usage { font-size: 13px; line-height: 1.8; color: var(--res-muted); margin: 12px 0 0; }
/* 标签（2026-11-14 补回）：右栏简介短、按钮贴底会留大空，标签放简介下方填补空位 */
.res-qv-tags { margin: 14px 0 0; }
.res-qv-tags span { display: inline-block; background: var(--res-teal-soft); color: var(--res-primary);
    border: 1px solid var(--res-teal-line); border-radius: 999px; padding: 3px 11px;
    margin: 0 6px 6px 0; font-size: 13px; font-weight: 600; }
/* 大图灯箱（2026-11-14 主人令）：点预览图进大图，可左右切换、可滑动 */
.res-lb-overlay { position: fixed; inset: 0; background: rgba(8, 20, 24, .92); z-index: 10000;
    display: flex; align-items: center; justify-content: center; }
.res-lb-overlay[hidden] { display: none; }
.res-lb-imgwrap { max-width: 92vw; max-height: 88vh; overflow: auto; }
.res-lb-imgwrap img { display: block; max-width: 100%; height: auto; }
.res-lb-close { position: absolute; top: 14px; right: 20px; border: 0; background: none;
    font-size: 34px; line-height: 1; color: #fff; cursor: pointer; padding: 4px 10px; opacity: .85; }
.res-lb-close:hover { opacity: 1; }
.res-lb-prev, .res-lb-next { position: absolute; top: 50%; transform: translateY(-50%);
    border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.res-lb-prev:hover, .res-lb-next:hover { background: rgba(255, 255, 255, .32); }
.res-lb-prev { left: 16px; }
.res-lb-next { right: 16px; }
.res-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .85); font-size: 14px; }
.res-qv-nopreview { color: var(--res-faint); font-size: 14px; }
/* PDF 预览页数限制提示块（2026-11-14 主人令，仿 yihuziliao.com 图 2）：预览列底部浅底块居中 */
.res-qv-limit { margin-top: 16px; padding: 18px 16px; background: #f8fafc; border: 1px solid var(--res-line); border-radius: 12px; text-align: center; }
.res-qv-limit-view { display: inline-block; padding: 8px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--res-primary); color: var(--res-primary); cursor: pointer; font-family: inherit; }
.res-qv-limit-view:hover { background: var(--res-teal-soft); }
.res-qv-limit-text { margin: 12px 0; font-size: 13px; color: var(--res-ink-2); line-height: 1.6; }
.res-qv-limit-dl { display: inline-block; padding: 8px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #1677ff; border: 1px solid #1677ff; color: #fff; cursor: pointer; font-family: inherit; text-decoration: none; }
button.res-qv-limit-dl:hover, a.res-qv-limit-dl:hover { background: #0f66d6; color: #fff; text-decoration: none; }
/* 按钮不贴底（2026-11-14 主人报右栏空）：简介短时贴底会在简介与按钮间留大空，改跟在标签后面 */
.res-qv-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.res-qv-btn { flex: 1; display: inline-block; padding: 12px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; text-align: center; white-space: nowrap; }
/* 按钮类链接的颜色必须用 .res-theme a.类名 写死（0,2,1），否则会被全局 .res-theme a 盖掉变靛蓝字 */
.res-theme a.res-qv-btn-primary { background: var(--res-primary); color: #fff; }
.res-theme a.res-qv-btn-primary:hover { background: var(--res-primary-deep); color: #fff; text-decoration: none; }
.res-theme a.res-qv-btn-ghost { background: #fff; color: var(--res-primary); border: 1px solid var(--res-teal-line); }
.res-theme a.res-qv-btn-ghost:hover { color: var(--res-primary-deep); text-decoration: none; }
/* 会员单按钮（2026-11-14 主人令）：只留一个，金底深棕字，双行文案“您已是尊贵的会员／请点击下载” */
.res-theme a.res-qv-btn-member { background: #f7c948; color: #5c3d00; border: 1px solid #f7c948; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px; line-height: 1.35; white-space: normal; }
.res-theme a.res-qv-btn-member:hover { background: #f2c02e; color: #5c3d00; text-decoration: none; }
.res-qv-member-title { font-size: 15px; font-weight: 700; }
.res-qv-member-sub { font-size: 13px; font-weight: 500; }
/* 开通会员是 <button>：a 版配色不认 button，补一份，并清默认按钮样式 */
.res-theme button.res-qv-btn { border: 0; font-family: inherit; cursor: pointer; }
.res-theme button.res-qv-btn-primary { background: var(--res-primary); color: #fff; }
.res-theme button.res-qv-btn-primary:hover { background: var(--res-primary-deep); color: #fff; }

/* ---------- 弹窗内购买窗口（2026-11-14 主人令）：点“单个购买”开游客购买，可选注册购买 ---------- */
.res-qv-buy-overlay { position: fixed; inset: 0; background: rgba(10, 26, 30, .62); z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.res-qv-buy-overlay[hidden] { display: none; }
.res-qv-buy-dialog { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 16px; padding: 24px 24px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.res-qv-buy-close { position: absolute; top: 8px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--res-muted); cursor: pointer; }
.res-qv-buy-close:hover { color: var(--res-ink); }
.res-qv-buy-title { margin: 0 28px 4px 0; font-size: 18px; line-height: 1.4; font-weight: 800; color: var(--res-ink); }
.res-qv-buy-price { font-size: 26px; font-weight: 800; color: var(--res-primary); margin: 0 0 16px; }
.res-qv-buy-label { font-size: 15px; font-weight: 700; color: var(--res-ink); margin: 0 0 6px; }
.res-qv-buy-note { font-size: 13px; line-height: 1.7; color: var(--res-muted); margin: 0 0 10px; }
.res-qv-buy-email { width: 100%; box-sizing: border-box; margin-bottom: 12px; }
.res-qv-buy-payrow { display: flex; gap: 10px; }
.res-qv-buy-payrow .res-buy-btn { flex: 1; }
.res-qv-buy-div { display: flex; align-items: center; gap: 12px; color: var(--res-faint); font-size: 13px; margin: 18px 0; }
.res-qv-buy-div::before, .res-qv-buy-div::after { content: ''; flex: 1; height: 1px; background: var(--res-line); }
.res-qv-buy-links { font-size: 14px; line-height: 1.7; color: var(--res-ink-2); margin: 0; }
.res-qv-buy-links a { color: var(--res-primary); font-weight: 700; }

/* ---------- 首页医护快捷入口（2026-11-14）：一行 6 个方块卡片，可换行 ---------- */
.res-quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 4px 0 8px; }
/* 快捷入口标题：比通用 .res-section 紧凑（2026-11-14 主人嫌占版面） */
.res-section.res-section-quick { margin: 20px 0 12px; }
.res-quick-card { display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--res-card); border: 1px solid var(--res-line); border-radius: 12px;
    padding: 12px 6px 10px; text-align: center; box-shadow: var(--res-shadow); }
.res-theme a.res-quick-card { color: var(--res-ink); }
.res-theme a.res-quick-card:hover { text-decoration: none; border-color: var(--res-primary);
    background: var(--res-teal-soft); box-shadow: var(--res-shadow-lg); }
/* 快捷入口选中态（2026-11-14 主人令：当前入口按钮要有变化、方便区分）：
   选中卡深青底、白字，盖过 hover 的浅青底（同优先级、放 hover 之后才赢） */
.res-theme a.res-quick-card.is-active { background: var(--res-primary); border-color: var(--res-primary); }
.res-theme a.res-quick-card.is-active .res-quick-name { color: #fff; }
.res-quick-icon { font-size: 20px; line-height: 1; }
.res-quick-name { font-size: 13px; font-weight: 700; color: var(--res-ink-2); line-height: 1.4; }

/* ---------- 医护列表：一级科室横向滚动栏（2026-11-14） ---------- */
/* 筛选区锚点落位（2026-11-14 主人报点筛选跳回页顶）：吸顶顶栏约 60-70px 高，留 76px 不让锚点被顶栏盖住 */
#res-filters { scroll-margin-top: 76px; }
/* 锚点焦点黑框（2026-11-14 主人报点筛选出大黑框）：浏览器跳到 #res-filters 时会聚焦该 div 并画默认焦点框（2px 黑框，键盘操作后显现）；这只是个滚动锚点、不是可交互控件，去掉描边不影响键盘操作 */
#res-filters:focus { outline: none; }
.res-cate-scroll { display: flex; gap: 8px; margin: 20px 0 4px; align-items: center;
    overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
/* 一级科室栏收进筛选白卡（2026-11-14 主人令）：卡内第一行，顶边距归零、贴着卡顶 */
.res-facets .res-cate-scroll { margin: 0 0 8px; }
/* 滚动条藏掉（2026-11-14 主人嫌灰杠扎眼）：栏照样能左右滑，只是不显示滚动条；手机端靠下面的右缘渐隐提示可滑 */
.res-cate-scroll::-webkit-scrollbar { display: none; }
.res-cate-scroll .res-cate-label { font-size: 14px; font-weight: 700; color: var(--res-ink-2);
    margin-right: 4px; flex: none; }
.res-cate-scroll .res-cate-chip { flex: none; white-space: nowrap; }

/* 已选条件条里的 ×（只去掉该项）：白字写死，防全局链接色盖掉 */
.res-selected-chip .res-selected-x { margin-left: 6px; font-weight: 800; cursor: pointer; }
.res-theme a.res-selected-x { color: #fff; }
.res-theme a.res-selected-x:hover { color: #fff; text-decoration: none; opacity: .8; }

/* 筛选【更多】按钮（医护线，替代旧 <details> 折叠） */
.res-more-btn { display: inline-block; margin: 2px 6px 2px 0; padding: 4px 13px;
    border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; background: #fff;
    color: var(--res-primary); border: 1px dashed var(--res-teal-line); line-height: 1.6; font-family: inherit; }
.res-more-btn:hover { border-color: var(--res-primary); }
/* 桌面端筛选全展开（2026-11-14 主人令）：所有标签直接展示，“更多”按钮只在手机端出现 */
.res-more-btn { display: none; }
/* 资料类型已选时收起后的“全部”按钮（2026-11-14 主人令）：描边药丸，点它只清本维度、回到快捷入口视图 */
.res-tag-all { display: inline-block; margin: 2px 6px 2px 0; padding: 4px 13px;
    border-radius: 999px; font-size: 13px; font-weight: 700; background: #fff;
    border: 1px solid var(--res-primary); line-height: 1.6; }
.res-theme a.res-tag-all { color: var(--res-primary); }
.res-theme a.res-tag-all:hover { text-decoration: none; background: var(--res-teal-soft); }

/* ---------- 筛选【更多】弹窗（2026-11-14，四行共用） ---------- */
.res-fm-overlay { position: fixed; inset: 0; background: rgba(10, 26, 30, .62); z-index: 9999;
    display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; }
.res-fm-overlay[hidden] { display: none; }
.res-fm-dialog { position: relative; width: 100%; max-width: 560px; background: #fff;
    border-radius: 16px; padding: 24px 24px 20px; box-shadow: var(--res-shadow-lg); }
.res-fm-close { position: absolute; top: 10px; right: 14px; border: 0; background: none;
    font-size: 28px; line-height: 1; color: var(--res-faint); cursor: pointer; padding: 4px 8px; }
.res-fm-close:hover { color: var(--res-ink); }
.res-fm-title { margin: 0 32px 14px 0; font-size: 19px; line-height: 1.4; font-weight: 800; }
.res-fm-search { width: 100%; padding: 10px 14px; border: 1px solid var(--res-line);
    border-radius: 10px; font-size: 15px; margin-bottom: 12px; outline: none; }
.res-fm-search:focus { border-color: var(--res-primary); box-shadow: 0 0 0 3px var(--res-teal-soft); }
.res-fm-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 320px; overflow-y: auto; }
.res-fm-item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
    border: 1px solid var(--res-line); border-radius: 999px; font-size: 14px; cursor: pointer;
    background: #f2f4f7; color: var(--res-ink-2); }
.res-fm-item.is-checked { background: var(--res-teal-soft); border-color: var(--res-primary);
    color: var(--res-primary); font-weight: 700; }
.res-fm-item input { accent-color: var(--res-primary); }
.res-fm-noresult { color: var(--res-faint); font-size: 14px; margin: 8px 0; }
.res-fm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.res-fm-btn { padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; }
.res-fm-cancel { background: #fff; border: 1px solid var(--res-line); color: var(--res-ink-2); }
.res-fm-ok { background: var(--res-primary); border: 0; color: #fff; }
.res-fm-ok:hover { background: var(--res-primary-deep); }

/* ---------- 小屏 ---------- */
@media (max-width: 900px) {
    .res-detail-grid { grid-template-columns: 1fr; }
    .res-detail-aside { position: static; }
    .res-grid { grid-template-columns: repeat(2, 1fr); }
    .res-quick-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    body.res-theme { font-size: 15px; }
    .res-wrap { padding: 0 16px; }
    .res-topbar-in { gap: 12px; padding: 10px 16px; }
    .res-nav-pills { margin-left: 0; }
    .res-nav-pills a { padding: 7px 14px; font-size: 14px; }
    .res-hero { padding: 28px 16px 24px; }
    .res-hero h1 { font-size: 28px; }
    .res-hero p { font-size: 15px; }
    .res-hero-search button { padding: 12px 20px; }
    .ch-hero { padding: 24px 0 4px; gap: 20px; }
    .ch-hero h1 { font-size: 28px; }
    .ch-hero-right { width: auto; }
    .ch-cards { grid-template-columns: 1fr; }
    .ch-card { padding: 26px 22px 22px; }
    /* 手机端卡片图按手机内边距走（桌面是 28px、手机是 22px，负边距须对上，否则图会宽出卡片） */
    .ch-card-img { width: calc(100% + 44px); height: 160px; margin: -26px -22px 20px; }
    .ch-card h2 { font-size: 22px; }
    .res-section { margin: 32px 0 12px; }
    .res-section h2 { font-size: 21px; }
    .res-cols { grid-template-columns: 1fr; }
    .res-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .res-cate-head { padding: 28px 0 22px; }
    .res-cate-head h1 { font-size: 25px; }
    /* 手机端科室栏滑动提示（2026-11-14 主人令）：滚动条已藏，右缘 32px 渐隐暗示后面还有栏目可滑 */
    .res-cate-scroll { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
        mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%); }
    /* 手机端筛选收起（2026-11-14 主人令）：每行只留前 8 个标签，第 9 个起藏起，“更多”按钮恢复显示 */
    .res-more-btn { display: inline-block; }
    .res-tag-extra { display: none; }
    .res-facets { padding: 16px; }
    /* 网格图片卡手机端 2 列（2026-11-14 主人令：列表在手机端一行 2 个）；卡片窄，标题/简介字号收一档、内边距收紧 */
    .res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .res-list--rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .res-row-body { padding: 12px 12px 14px; }
    .res-row-body h3 { font-size: 15px; }
    .res-row-desc { font-size: 13px; }
    .res-detail { margin: 20px 0 32px; }
    .res-detail h1 { font-size: 24px; }
    .res-dl-box { padding: 18px; }
    .res-dl-price { font-size: 26px; }
    .res-dl-payrow { flex-direction: column; }
    .res-dl-payrow .res-dl-btn { flex: none; }
    .res-detail h2 { font-size: 19px; }
    .res-qv-overlay { padding: 12px 8px; }
    .res-qv-dialog { padding: 22px 18px 18px; border-radius: 14px; }
    .res-qv-title { font-size: 19px; }
    /* 弹窗手机端上下叠（白衣两栏改单列）：主体整块滚动，预览图在上、信息在下；预览图仍一排 1 张竖排 */
    .res-qv-body { flex-direction: column; overflow-y: auto; gap: 16px; }
    .res-qv-preview-col { flex: none; overflow: visible; }
    .res-qv-info-col { width: auto; flex: none; overflow: visible; }
    .res-qv-price { font-size: 24px; }
}

/* 热门组合筛选（V1，2026-11-14）：列表页顶部的预制组合一键按钮 */
.res-hot-combos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; align-items: center; }
.res-hot-label { font-size: 14px; font-weight: 700; color: var(--res-ink-2); margin-right: 4px; }
.res-combo-btn { display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 14px;
  background: var(--res-accent-soft); border: 1px solid #e8c87a; color: #8a6d1b; }
.res-theme a.res-combo-btn:hover { border-color: var(--res-primary); color: var(--res-primary); text-decoration: none; }
.res-theme a.res-combo-btn.is-active { background: var(--res-primary); border-color: var(--res-primary); color: #fff; }
/* 卡片元信息里的“资料类型｜所属科室”，固定展示、稍作强调 */
.res-card-type-dept { font-weight: 700; color: var(--res-ink); }
