/* 资料站主题（templates/resource）— 频道入口外观：淡紫底、白顶栏、靛蓝主色（对标 AIPTPT 式行业入口） */
:root {
    --res-primary: #4338ca;
    --res-primary-dark: #1e3a8a;
    --res-accent: #b45309;
    --res-ink: #111827;
    --res-muted: #6b7280;
    --res-line: #e5e7eb;
    --res-bg: #eef2ff;
    --res-card: #ffffff;
    --res-radius: 14px;
}
* { box-sizing: border-box; }
body.res-theme { margin: 0; background: var(--res-bg); color: var(--res-ink);
    font: 16px/1.6 -apple-system, "PingFang SC", "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: 1080px; margin: 0 auto; padding: 0 16px; }

/* 顶栏：白底、品牌左、频道入口按钮右 */
.res-topbar { background: #fff; border-bottom: 1px solid var(--res-line); }
.res-topbar-in { max-width: 1080px; margin: 0 auto; padding: 12px 16px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.res-brand { display: flex; align-items: center; gap: 10px; color: var(--res-ink); }
.res-brand:hover { text-decoration: none; }
.res-brand-mark { font-size: 26px; line-height: 1; }
.res-brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.res-brand-text strong { font-size: 19px; font-weight: 800; color: var(--res-ink); }
.res-brand-text small { font-size: 12px; color: var(--res-muted); }
.res-nav-pills { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.res-nav-pills a { display: inline-block; padding: 8px 18px; border-radius: 999px;
    border: 1px solid #c7d2fe; background: #fff; color: var(--res-primary);
    font-size: 15px; font-weight: 600; white-space: nowrap; }
.res-nav-pills a:hover { background: #eef2ff; text-decoration: none; }
.res-nav-pills a:last-child { background: var(--res-primary-dark); border-color: var(--res-primary-dark); color: #fff; }
.res-nav-pills a:last-child:hover { background: #172554; }
.res-account { font-size: 14px; color: var(--res-muted); white-space: nowrap; }
.res-account:hover { color: var(--res-primary); }

/* 首页 hero 搜索 */
.res-hero { background: linear-gradient(180deg, #0f766e, #14919a); color: #fff;
    text-align: center; padding: 44px 16px 40px; }
.res-hero h1 { margin: 0 0 8px; font-size: 30px; }
.res-hero p { margin: 0 0 22px; color: #ccfbf1; font-size: 16px; }
.res-hero-search { display: flex; max-width: 620px; margin: 0 auto;
    background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.res-hero-search input { flex: 1; border: 0; outline: none; font-size: 16px;
    padding: 8px 14px; border-radius: 999px; min-width: 0; }
.res-hero-search button { border: 0; border-radius: 999px; padding: 10px 26px;
    background: var(--res-accent); color: #fff; font-size: 16px; cursor: pointer; white-space: nowrap; }
.res-hero-hint { margin-top: 14px; font-size: 13px; color: #99f6e4; }
.res-hero-hint a { color: #fff; }

/* 两大栏目卡片 */
.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; }
.res-col-card:hover { text-decoration: none; border-color: var(--res-primary);
    box-shadow: 0 4px 16px rgba(15,118,110,.12); }
.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: #f0fdfa; 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: 600; }

/* 区块标题 */
.res-section { margin: 28px 0 12px; display: flex; align-items: baseline; gap: 12px; }
.res-section h2 { margin: 0; font-size: 20px; }
.res-section .res-more { margin-left: auto; font-size: 14px; }

/* 资料卡片网格 */
.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; }
.res-card:hover { text-decoration: none; border-color: var(--res-primary);
    box-shadow: 0 4px 16px rgba(15,118,110,.12); }
.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: 12px 14px 14px; }
.res-card-title { font-size: 15px; font-weight: 600; color: var(--res-ink);
    line-height: 1.45; margin: 0 0 6px;
    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: 8px; }
.res-price { font-weight: 700; color: var(--res-accent); }
.res-free { font-weight: 700; color: var(--res-primary); }
.res-hits { font-size: 13px; color: var(--res-muted); }

/* 列表页 */
.res-cate-head { background: #fff; border-bottom: 1px solid var(--res-line); padding: 28px 0 20px; }
.res-cate-head h1 { margin: 0 0 6px; font-size: 26px; }
.res-cate-head p { margin: 0; color: var(--res-muted); }
.res-crumb { font-size: 13px; color: var(--res-muted); margin-bottom: 10px; }
.res-crumb a { color: var(--res-muted); }
.res-list { margin: 20px 0; display: grid; gap: 12px; }
.res-row { display: flex; gap: 16px; background: var(--res-card); border: 1px solid var(--res-line);
    border-radius: var(--res-radius); padding: 14px; }
.res-row:hover { border-color: var(--res-primary); }
.res-row-thumb { width: 180px; flex: none; aspect-ratio: 16 / 9; border-radius: 8px;
    overflow: hidden; background: #e2e8f0; }
.res-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-row-body { min-width: 0; }
.res-row-body h3 { margin: 0 0 6px; font-size: 17px; }
.res-row-body h3 a { color: var(--res-ink); }
.res-row-desc { margin: 0 0 8px; font-size: 14px; color: var(--res-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-empty { text-align: center; color: var(--res-muted); padding: 48px 16px;
    background: var(--res-card); border: 1px dashed var(--res-line); border-radius: var(--res-radius); }
.res-pagination { margin: 20px 0 32px; text-align: center; }
.res-pagination a, .res-pagination span { display: inline-block; padding: 6px 12px; margin: 0 2px;
    border: 1px solid var(--res-line); border-radius: 6px; background: #fff; font-size: 14px; }
.res-pagination a:hover { border-color: var(--res-primary); text-decoration: none; }

/* 筛选面板“更多”折叠（details/summary，纯 HTML，无 JS）：
   每维度默认只显示前 8 个热门标签，其余收进 details，点“更多”展开、点“收起”合上。 */
.res-facet-more { display: inline; }
.res-facet-more summary { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 10px;
    border-radius: 999px; font-size: 13px; cursor: pointer; background: #fff;
    color: var(--res-primary); border: 1px dashed #c7d2fe; list-style: none; }
.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-detail { background: var(--res-card); border: 1px solid var(--res-line);
    border-radius: var(--res-radius); padding: 24px; margin: 20px 0; }
.res-detail h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.4; }
.res-detail-meta { font-size: 14px; color: var(--res-muted); margin-bottom: 16px;
    display: flex; gap: 16px; flex-wrap: wrap; }
.res-dl-box { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: var(--res-radius);
    padding: 18px 20px; margin: 18px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* 注意：必须用 .res-theme a.res-dl-btn（不能只写 .res-dl-btn）——全局
   .res-theme a（0,1,1）会盖掉单 class 的 color，白字变靛蓝字、按钮上字
   看不见。2026-11-12 实测：DOM 里有“免费下载”、视觉上空白按钮即因此。 */
.res-theme a.res-dl-btn { display: inline-block; background: var(--res-primary); color: #fff;
    font-size: 17px; font-weight: 700; padding: 12px 28px; border-radius: 8px; white-space: nowrap; }
.res-theme a.res-dl-btn:hover { background: var(--res-primary-dark); color: #fff; text-decoration: none; }
.res-dl-note { font-size: 14px; color: var(--res-muted); }
/* 下载区“报告失效”改为弱化描边按钮，不与下载主按钮抢视觉 */
.res-dl-report { display: inline-block; padding: 8px 14px; background: #fff; color: #dc2626;
    border: 1px solid #fca5a5; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.res-dl-report:hover { background: #fef2f2; }
.res-dl-report-done { color: var(--res-muted); border-color: var(--res-line); cursor: default; }
.res-dl-report-done:hover { background: #fff; }
.res-dl-price { font-size: 24px; font-weight: 800; color: var(--res-accent); }
.res-detail h2 { font-size: 19px; margin: 24px 0 10px; padding-bottom: 8px;
    border-bottom: 1px solid var(--res-line); }
.res-detail-body { font-size: 16px; line-height: 1.8; }
.res-detail-body img { max-width: 100%; height: auto; }
.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: #134e4a; color: #ccfbf1; margin-top: 40px; padding: 28px 0 20px; }
.res-footer a { color: #ccfbf1; }
.res-footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.res-footer-copy { font-size: 13px; color: #99f6e4; }

/* 频道入口首页（行业入口 Hero + 两大行业卡片） */
.ch-hero { margin: 24px 0 0; padding: 36px 36px 32px;
    background: var(--res-card); border: 1px solid var(--res-line);
    border-radius: var(--res-radius); display: flex; gap: 32px; align-items: center; }
.ch-hero-left { flex: 1; min-width: 0; }
.ch-eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--res-accent); }
.ch-hero h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.25; color: var(--res-ink); font-weight: 800; }
.ch-hero-desc { margin: 0; font-size: 15px; color: var(--res-muted); }
.ch-hero-right { flex: none; width: 340px; display: grid; gap: 12px; }
.ch-feat { background: #fff; border: 1px solid var(--res-line); border-radius: 10px;
    padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--res-ink); }
.ch-cards { margin: 20px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ch-card { background: var(--res-card); border: 1px solid var(--res-line);
    border-radius: var(--res-radius); padding: 28px 28px 24px; }
.ch-card:first-child { border: 2px solid var(--res-ink); }
.ch-card-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--res-accent); }
.ch-card h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.35; color: var(--res-ink); font-weight: 800; }
.ch-card-desc { margin: 0 0 16px; font-size: 15px; color: var(--res-muted); }
.ch-card-points { margin: 0 0 20px; padding: 0; list-style: none; }
.ch-card-points li { position: relative; padding-left: 16px; margin-bottom: 8px;
    font-size: 15px; color: var(--res-ink); }
.ch-card-points li::before { content: "•"; position: absolute; left: 0; color: var(--res-ink); }
.ch-card-btn { display: inline-block; padding: 10px 22px; border-radius: 999px;
    background: #dbeafe; color: #1d4ed8; font-size: 15px; font-weight: 700; }
.ch-card-btn:hover { background: #bfdbfe; color: #1e40af; text-decoration: none; }

/* 小屏 */
@media (max-width: 760px) {
    .res-cols { grid-template-columns: 1fr; }
    .res-grid { grid-template-columns: repeat(2, 1fr); }
    .res-top-search input { width: 120px; }
    .res-row { flex-direction: column; }
    .res-row-thumb { width: 100%; }
    .res-hero h1 { font-size: 24px; }
    .ch-hero { flex-direction: column; align-items: stretch; padding: 24px 20px; gap: 20px; }
    .ch-hero-right { width: auto; }
    .ch-hero h1 { font-size: 26px; }
    .ch-cards { grid-template-columns: 1fr; }
    .ch-card { padding: 22px 20px; }
    .ch-card h2 { font-size: 21px; }
}
