/* ==========================================================================
   Atlas 模板 · base（结构层：令牌 / 布局 / 通用组件）
   --------------------------------------------------------------------------
   只放「全站复用」的东西：容器、按钮、胶囊、序号牌、顶栏、区块头、海报卡、
   行式榜、面包屑、分页、页脚。单页专属版式一律写在 dt-theme.css（页面层）。
   类名族：pb- = 结构组件；dt- = 页面版式（见 dt-theme.css）。
   ========================================================================== */

:root {
    /* ---- 牧草纸与松墨 ---------------------------------------------------- */
    --pb-paper: #edefe4;          /* 页面底：晒过的牧草纸色，冷白与暖米之间偏青 */
    --pb-surface: #fffdf7;        /* 卡面：奶白，像新换的饲料单 */
    --pb-surface-2: #f4f3e8;      /* 次级面：标签底 / 表头 / 输入框 */
    --pb-surface-3: #e0e2d1;      /* 图占位 / 骨架 */
    --pb-ink: #1b231d;            /* 牛棚深处的墨绿黑 */
    --pb-ink-2: #4b574c;          /* 次级文字 */
    --pb-ink-3: #7e8a7c;          /* 弱文字（时间 / 计数） */
    --pb-line: #dde0d1;           /* 1px 分隔线：栅栏细线 */
    --pb-line-2: #c4cab7;         /* 强线（输入框 / 表头） */

    /* ---- 松墨绿（唯一主色：牧场围栏与牛背的深色） ------------------------ */
    --pb-primary: #24503f;
    --pb-primary-d: #173a2d;         /* hover 压深 */
    --pb-primary-ink: #f1f8f3;       /* 松墨绿底上的字 */
    --pb-primary-s: rgba(36, 80, 63, .08);
    --pb-primary-s2: rgba(36, 80, 63, .17);

    /* ---- 牛铃铜（点缀：当前态 / 强调数字 / 主行动） ---------------------- */
    --pb-accent: #a86f26;
    --pb-accent-d: #87561a;
    --pb-accent-ink: #fff9ee;
    --pb-accent-s: rgba(168, 111, 38, .13);

    /* 提示态：同一强调色的深浅变体，不引进第三种彩色 */
    --pb-warn-s: rgba(168, 111, 38, .15);
    --pb-danger: #a43f2a;
    --pb-danger-s: rgba(164, 63, 42, .09);

    /* ---- 字号（最大标题 24px：需求方硬约束「不能超大字号」） ------------- */
    --pb-fs-2xs: 11px;
    --pb-fs-xs: 12px;
    --pb-fs-sm: 13px;
    --pb-fs-base: 14px;
    --pb-fs-md: 15px;
    --pb-fs-lg: 17px;
    --pb-fs-xl: 19px;
    --pb-fs-h1: 22px;
    --pb-fs-max: 24px;
    --pb-lh: 1.6;
    --pb-lh-tight: 1.3;

    /* ---- 字体：全站一套无衬线；数字走等宽变体 ---------------------------- */
    --pb-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --pb-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    /* ---- 容器与间距（紧凑是身份，不要放大） ------------------------------ */
    --pb-shell: 1340px;
    --pb-gutter: clamp(12px, 1.5vw, 20px);
    --pb-gap: 14px;                              /* 板块间距 */
    --pb-gap-xs: 8px;                            /* 卡片间隙 */
    --pb-pad: clamp(12px, 1.1vw, 16px);          /* 卡内边距 */

    /* ---- 圆角：耳标式不对称小圆角 ---------------------------------------- */
    --pb-r-xs: 2px;
    --pb-r-sm: 4px;
    --pb-r-md: 7px;
    --pb-r-lg: 12px;

    /* ---- 阴影：默认不用，悬浮才浮起 -------------------------------------- */
    --pb-sh-1: 0 1px 2px rgba(27, 35, 29, .05);
    --pb-sh-2: 0 12px 26px -16px rgba(27, 35, 29, .32);

    --pb-ease: cubic-bezier(.22, .61, .36, 1);
    --pb-t: .18s;

    --pb-header-h: 58px;
    --pb-anchor-offset: 72px;

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   1. 容器
   -------------------------------------------------------------------------- */
.pb-shell {
    width: 100%;
    max-width: var(--pb-shell);
    margin-inline: auto;
    padding-inline: var(--pb-gutter);
}
.pb-main { padding-block: var(--pb-gap); min-height: 45vh; }
.pb-main > .pb-shell > * + * { margin-top: var(--pb-gap); }

/* --------------------------------------------------------------------------
   2. 按钮 / 胶囊 / 序号牌
   -------------------------------------------------------------------------- */
.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 34px;
    padding: 0 15px;
    border-radius: var(--pb-r-md);
    background: var(--pb-primary);
    color: var(--pb-primary-ink);
    font-size: var(--pb-fs-base);
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--pb-t) var(--pb-ease), border-color var(--pb-t) var(--pb-ease), color var(--pb-t) var(--pb-ease);
}
.pb-btn:hover { background: var(--pb-primary-d); }
.pb-btn svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.pb-btn--accent { background: var(--pb-accent); color: var(--pb-accent-ink); }
.pb-btn--accent:hover { background: var(--pb-accent-d); }
.pb-btn--ghost {
    background: var(--pb-surface);
    color: var(--pb-ink);
    border: 1px solid var(--pb-line-2);
}
.pb-btn--ghost:hover { border-color: var(--pb-primary); color: var(--pb-primary); background: var(--pb-primary-s); }
.pb-btn--sm { height: 28px; padding: 0 11px; font-size: var(--pb-fs-sm); }

.pb-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;                 /* flex 行内不被压窄折行 */
    height: 26px;
    padding: 0 10px;
    border-radius: var(--pb-r-md);
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-line);
    color: var(--pb-ink-2);
    font-size: var(--pb-fs-sm);
    line-height: 1;
    white-space: nowrap;
    transition: background var(--pb-t) var(--pb-ease), color var(--pb-t) var(--pb-ease), border-color var(--pb-t) var(--pb-ease);
}
.pb-chip:hover { border-color: var(--pb-primary); color: var(--pb-primary); background: var(--pb-primary-s); }
.pb-chip.is-active {
    background: var(--pb-primary);
    border-color: var(--pb-primary);
    color: var(--pb-primary-ink);
    font-weight: 600;
}
.pb-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* 序号牌：楼层 / 板块编号（靛蓝细框 + 等宽数字） */
.pb-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 24px;
    height: 22px;
    padding: 0 5px;
    border: 1px solid var(--pb-primary);
    border-radius: var(--pb-r-sm);
    color: var(--pb-primary);
    font: 600 var(--pb-fs-xs)/1 var(--pb-mono);
    letter-spacing: .02em;
}
.pb-index--fill { background: var(--pb-primary); color: var(--pb-primary-ink); }
.pb-index--accent { border-color: var(--pb-accent); color: var(--pb-accent); }

/* --------------------------------------------------------------------------
   3. 顶栏（传统横排频道菜单，窄屏由 JS 搬进抽屉）
   -------------------------------------------------------------------------- */
.pb-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background-color: var(--pb-surface);
    background-image: linear-gradient(90deg, var(--pb-primary) 0%, var(--pb-accent) 100%);
    background-repeat: no-repeat;
    background-size: 100% 3px;
    border-bottom: 1px solid var(--pb-line);
    box-shadow: var(--pb-sh-1);
}
.pb-header__bar {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 22px);
    height: var(--pb-header-h);
}
.pb-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
/* 品牌标记：与卡片同源的耳标形（左上圆、右下削角） */
.pb-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px; height: 27px;
    border-radius: 8px 8px 2px 8px;
    background: var(--pb-primary);
    color: var(--pb-primary-ink);
    font: 800 15px/1 var(--pb-sans);
}
.pb-brand__name {
    font-size: var(--pb-fs-lg);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--pb-primary);
    white-space: nowrap;
}
.pb-header__nav { flex: 1 1 auto; min-width: 0; }

.pb-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    height: var(--pb-header-h);
}
.pb-nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.pb-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 100%;
    padding: 0 11px;
    font-size: var(--pb-fs-md);
    font-weight: 600;
    color: var(--pb-ink);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--pb-t) var(--pb-ease), border-color var(--pb-t) var(--pb-ease), background var(--pb-t) var(--pb-ease);
}
.pb-nav__link:hover { color: var(--pb-primary); background: var(--pb-primary-s); }
.pb-nav__link.is-active { color: var(--pb-primary); border-bottom-color: var(--pb-accent); }
.pb-nav__caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pb-nav__item:hover .pb-nav__caret,
.pb-nav__item:focus-within .pb-nav__caret { transform: rotate(180deg); }

/* 子分类浮层：悬停 / 键盘聚焦展开（触发条目必须 relative，否则会认到 sticky 顶栏） */
.pb-nav__sub {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 70;
    width: max-content;            /* 不写会被条目宽度收缩成一条 */
    max-width: 460px;
    padding: 6px;
    background: var(--pb-surface);
    border: 1px solid var(--pb-line);
    border-radius: var(--pb-r-md);
    box-shadow: var(--pb-sh-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--pb-t) var(--pb-ease), transform var(--pb-t) var(--pb-ease), visibility var(--pb-t);
}
.pb-nav__item:hover > .pb-nav__sub,
.pb-nav__item:focus-within > .pb-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.pb-nav__sub nav { display: flex; flex-wrap: wrap; gap: 3px; max-width: 448px; }
.pb-nav__sub a {
    padding: 5px 9px;
    border-radius: var(--pb-r-sm);
    font-size: var(--pb-fs-sm);
    color: var(--pb-ink-2);
    white-space: nowrap;
}
.pb-nav__sub a:hover { background: var(--pb-primary-s); color: var(--pb-primary); }
.pb-nav__sub a.is-active { background: var(--pb-primary); color: var(--pb-primary-ink); font-weight: 600; }

.pb-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.pb-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 11px;
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-line-2);
    border-radius: var(--pb-r-md);
    transition: border-color var(--pb-t) var(--pb-ease), background var(--pb-t) var(--pb-ease);
}
.pb-search:focus-within { border-color: var(--pb-primary); background: var(--pb-surface); }
.pb-search svg { width: 14px; height: 14px; fill: none; stroke: var(--pb-ink-3); stroke-width: 2; flex: 0 0 auto; }
.pb-search input {
    width: 168px;
    border: 0;
    background: none;
    outline: none;
    font-size: var(--pb-fs-sm);
}
.pb-search input::placeholder { color: var(--pb-ink-3); }
.pb-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--pb-r-md);
    color: var(--pb-ink-2);
    transition: background var(--pb-t) var(--pb-ease), color var(--pb-t) var(--pb-ease);
}
.pb-iconbtn:hover { background: var(--pb-primary-s); color: var(--pb-primary); }
.pb-iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pb-header__burger { display: none; }

/* 窄屏抽屉 */
.pb-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(16, 36, 28, .46);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--pb-t) var(--pb-ease), visibility var(--pb-t);
}
.pb-drawer.is-open { opacity: 1; visibility: visible; }
.pb-drawer__panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: min(88vw, 340px);
    background: var(--pb-surface);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .24s var(--pb-ease);
}
.pb-drawer.is-open .pb-drawer__panel { transform: translateX(0); }
.pb-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--pb-line);
}
.pb-drawer__head strong { font-size: var(--pb-fs-md); }
.pb-drawer__search { padding: 10px 14px; border-bottom: 1px solid var(--pb-line); }
.pb-drawer__search .pb-search { width: 100%; }
.pb-drawer__search input { width: 100%; }
.pb-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 14px 20px; }
.pb-drawer__body .pb-nav { display: block; height: auto; }
.pb-drawer__body .pb-nav__item { display: block; height: auto; }
.pb-drawer__body .pb-nav__link {
    height: auto;
    padding: 9px 2px;
    border-bottom: 1px solid var(--pb-line);
    font-size: var(--pb-fs-md);
}
.pb-drawer__body .pb-nav__link.is-active { border-bottom-color: var(--pb-line); color: var(--pb-primary); }
.pb-drawer__body .pb-nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: auto;
    max-width: none;
    padding: 4px 0 8px;
    border: 0;
    box-shadow: none;
    background: none;
}
.pb-drawer__body .pb-nav__sub nav { max-width: none; gap: 4px; }
.pb-drawer__body .pb-nav__caret { display: none; }

/* --------------------------------------------------------------------------
   4. 页面头（面包屑条，除首页外每页都有）
   -------------------------------------------------------------------------- */
.pb-pagehead {
    background: var(--pb-surface);
    border: 1px solid var(--pb-line);
    border-radius: var(--pb-r-md);
    padding: 9px var(--pb-pad);
}
.pb-pagebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-pagebar__side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pb-pagebar__hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--pb-fs-xs);
    color: var(--pb-ink-3);
}
.pb-pagebar__hint b { color: var(--pb-primary); font-weight: 600; }
.pb-pagebar__hint i { font-style: normal; color: var(--pb-line-2); }

.pb-crumb {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: var(--pb-fs-xs);
    color: var(--pb-ink-3);
    min-width: 0;
}
.pb-crumb a { color: var(--pb-ink-2); }
.pb-crumb a:hover { color: var(--pb-primary); text-decoration: underline; text-underline-offset: 2px; }
.pb-crumb svg { width: 11px; height: 11px; fill: none; stroke: var(--pb-line-2); stroke-width: 2.4; flex: 0 0 auto; }
.pb-crumb [aria-current="page"] { color: var(--pb-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   5. 区块（section）与区块头
   ⚠️ 需求硬约束：区块头旁边**不放**解释性说明文字（「按热度统计」这类一律不写），
      只保留「编号 + 标题 + 可选的 更多 → 」。
   -------------------------------------------------------------------------- */
.pb-sec {
    background: var(--pb-surface);
    border: 1px solid var(--pb-line);
    border-radius: var(--pb-r-md);
    padding: var(--pb-pad);
}
.pb-sec--flush { padding: 0; overflow: hidden; }
.pb-sec__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.pb-sec--flush .pb-sec__head { margin: 0; padding: 10px var(--pb-pad); border-bottom: 1px solid var(--pb-line); }
.pb-sec__head h2 { font-size: var(--pb-fs-lg); letter-spacing: -.01em; }
.pb-sec__head h2 a:hover { color: var(--pb-primary); }
.pb-sec__more {
    margin-left: auto;
    font-size: var(--pb-fs-xs);
    color: var(--pb-primary);
    white-space: nowrap;
}
.pb-sec__more:hover { text-decoration: underline; text-underline-offset: 2px; }
.pb-panel {
    background: var(--pb-surface);
    border: 1px solid var(--pb-line);
    border-radius: var(--pb-r-md);
    padding: var(--pb-pad);
}

/* --------------------------------------------------------------------------
   6. 海报卡（首页楼层 / 频道 / 筛选 / 搜索 / 详情推荐 全站共用）
   -------------------------------------------------------------------------- */
.pb-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));   /* 必须显式给列，否则隐式单列 → 卡片拉成巨图 */
    gap: var(--pb-gap-xs);
}
.pb-grid--list { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* 耳标卡：上圆下削的耳标轮廓 + 左上穿孔 + 右上铜牌评分 + 右下松绿状态签。
   悬停不位移不缩放，只点亮左缘耳标条、铜牌轻摆与标题转色。 */
.pb-card {
    position: relative;
    background: var(--pb-surface);
    border: 1px solid var(--pb-line);
    border-radius: 11px 11px 3px 11px;
    overflow: hidden;
    transition: border-color var(--pb-t) var(--pb-ease), box-shadow var(--pb-t) var(--pb-ease);
}
.pb-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    z-index: 3;
    width: 3px;
    background: linear-gradient(180deg, var(--pb-primary) 0%, var(--pb-accent) 100%);
    opacity: .45;
    transition: opacity var(--pb-t) var(--pb-ease);
}
.pb-card:hover { border-color: var(--pb-primary); box-shadow: var(--pb-sh-2); }
.pb-card:hover::before { opacity: 1; }
.pb-card > a { display: block; }
.pb-card__pic {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: var(--pb-surface-3);
    overflow: hidden;
}
/* 耳标穿孔：把卡片底纸露出来，像一张打了孔的牲畜耳标 */
.pb-card__pic::before {
    content: '';
    position: absolute;
    left: 9px; top: 9px;
    z-index: 3;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--pb-paper);
    box-shadow: 0 0 0 1px rgba(27, 35, 29, .22), inset 0 1px 2px rgba(27, 35, 29, .3);
    pointer-events: none;
}
.pb-card__pic img { width: 100%; height: 100%; object-fit: cover; }
/* 角标预算 = 2 个：右上「评分」+ 右下「更新状态」，不得再加第三个 */
.pb-card__score {
    position: absolute;
    right: 0; top: 0;
    padding: 2px 8px 3px 9px;
    background: var(--pb-accent);
    color: var(--pb-accent-ink);
    font: 700 var(--pb-fs-xs)/1.5 var(--pb-mono);
    letter-spacing: .02em;
    clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px);
    transform-origin: 100% 0;
    transition: transform var(--pb-t) var(--pb-ease);
}
.pb-card:hover .pb-card__score { transform: rotate(-3deg); }
.pb-card__score i { font-style: normal; font-size: 9px; opacity: .8; margin-left: 1px; }
.pb-card__note {
    position: absolute;
    right: 0; bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 7px;
    background: rgba(36, 80, 63, .92);
    color: var(--pb-primary-ink);
    font-size: var(--pb-fs-2xs);
    line-height: 1.6;
    border-top-left-radius: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pb-card__note::before {
    content: '';
    flex: 0 0 auto;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--pb-accent);
}
/* ⚠️ 必须显式 block：这是 span（inline）装 h3/p（块级）的结构，
   inline 盒的横向 padding 对块级子元素**不生效**（实测标题距卡缘只有 1px），
   不设 block 的话片名会整排贴着卡片左缘。 */
.pb-card__body { display: block; padding: 8px 9px 9px; }
.pb-card__body h3 {
    font-size: var(--pb-fs-sm);
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--pb-t) var(--pb-ease);
}
.pb-card:hover .pb-card__body h3 { color: var(--pb-primary); }
.pb-card__meta {
    margin-top: 4px;
    font-size: var(--pb-fs-2xs);
    color: var(--pb-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 耳标钉：元信息前的铜色菱形小钉 */
.pb-card__meta::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    margin-right: 5px;
    border-radius: 1px;
    background: var(--pb-accent);
    transform: rotate(45deg);
    vertical-align: 1px;
}
@media (hover: none) {
    .pb-card:hover .pb-card__score { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pb-card, .pb-card::before, .pb-card__score, .pb-card__body h3 { transition: none; }
    .pb-card:hover .pb-card__score { transform: none; }
}

/* --------------------------------------------------------------------------
   7. 行式榜 / 行式条目（文本密度主力，可索引文本远超海报网格）
   -------------------------------------------------------------------------- */
.pb-rows li + li { border-top: 1px dashed var(--pb-line); }
.pb-rows a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    font-size: var(--pb-fs-sm);
}
.pb-rows a:hover { color: var(--pb-primary); }
.pb-num {
    flex: 0 0 auto;
    width: 20px;
    font: 600 var(--pb-fs-xs)/1 var(--pb-mono);
    color: var(--pb-ink-3);
    text-align: right;
}
.pb-rows li:nth-child(-n+3) .pb-num { color: var(--pb-accent); }
.pb-rows a > span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pb-rows em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: var(--pb-fs-2xs);
    color: var(--pb-ink-3);
}

/* 缩略图 + 文字的行（侧栏 / 相关推荐 / 资讯） */
.pb-vrow {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
}
.pb-vrow + .pb-vrow { border-top: 1px dashed var(--pb-line); }
.pb-vrow__pic {
    flex: 0 0 auto;
    width: 46px;
    aspect-ratio: 2 / 3;
    border-radius: var(--pb-r-sm);
    overflow: hidden;
    background: var(--pb-surface-3);
}
.pb-vrow__pic img { width: 100%; height: 100%; object-fit: cover; }
.pb-vrow__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-vrow__copy b {
    font-size: var(--pb-fs-sm);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pb-vrow:hover .pb-vrow__copy b { color: var(--pb-primary); }
.pb-vrow__copy i { font-style: normal; font-size: var(--pb-fs-2xs); color: var(--pb-ink-3); }

/* 大信息行（最新收录 / 搜索结果：标题 + 元信息 + 摘要） */
.pb-linerow {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}
.pb-linerow + .pb-linerow { border-top: 1px solid var(--pb-line); }
.pb-linerow__pic {
    flex: 0 0 auto;
    width: 92px;
    aspect-ratio: 2 / 3;
    border-radius: var(--pb-r-sm);
    overflow: hidden;
    background: var(--pb-surface-3);
}
.pb-linerow__pic img { width: 100%; height: 100%; object-fit: cover; }
.pb-linerow__copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pb-linerow__copy b { font-size: var(--pb-fs-md); font-weight: 700; }
.pb-linerow__copy b a:hover { color: var(--pb-primary); }
.pb-linerow__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: var(--pb-fs-xs);
    color: var(--pb-ink-3);
}
.pb-linerow__meta a { color: var(--pb-primary); }
.pb-linerow__meta a:hover { text-decoration: underline; text-underline-offset: 2px; }
.pb-linerow__meta em { font-style: normal; color: var(--pb-accent); font-weight: 600; }
.pb-linerow__copy p {
    font-size: var(--pb-fs-sm);
    line-height: 1.68;
    color: var(--pb-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pb-linerow__cast {
    font-size: var(--pb-fs-xs);
    color: var(--pb-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. 资料表（详情页资料带 / 播放页本片信息）
   -------------------------------------------------------------------------- */
.pb-facts { display: grid; gap: 4px 14px; }
.pb-facts > div { display: flex; gap: 8px; min-width: 0; }
.pb-facts dt {
    flex: 0 0 auto;
    width: 52px;
    color: var(--pb-ink-3);
    font-size: var(--pb-fs-xs);
    line-height: 1.7;
}
.pb-facts dd {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--pb-fs-sm);
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.pb-facts--inline {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 18px;
}
.pb-facts--inline > div { border-right: 1px dashed var(--pb-line); padding-right: 12px; }
.pb-facts--inline > div:last-child { border-right: 0; }

/* --------------------------------------------------------------------------
   9. 统计条 / 分页 / 空态
   -------------------------------------------------------------------------- */
.pb-resultbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0 2px;
    font-size: var(--pb-fs-xs);
    color: var(--pb-ink-3);
}
.pb-resultbar b { color: var(--pb-accent); font-size: var(--pb-fs-sm); }

.pb-pager {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pb-line);
}
.pb-pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid var(--pb-line-2);
    border-radius: var(--pb-r-sm);
    font-size: var(--pb-fs-sm);
    color: var(--pb-ink-2);
    transition: background var(--pb-t) var(--pb-ease), color var(--pb-t) var(--pb-ease), border-color var(--pb-t) var(--pb-ease);
}
.pb-pager a:hover { border-color: var(--pb-primary); color: var(--pb-primary); background: var(--pb-primary-s); }
.pb-pager a.is-active { background: var(--pb-primary); border-color: var(--pb-primary); color: var(--pb-primary-ink); font-weight: 600; }
.pb-pager a.is-disabled { color: var(--pb-ink-3); opacity: .5; pointer-events: none; }
.pb-pager__meta { margin-left: auto; font-size: var(--pb-fs-xs); color: var(--pb-ink-3); }

.pb-empty {
    padding: 34px 16px;
    text-align: center;
    background: var(--pb-surface);
    border: 1px dashed var(--pb-line-2);
    border-radius: var(--pb-r-md);
}
.pb-empty h2 { font-size: var(--pb-fs-lg); }
.pb-empty p { margin-top: 6px; font-size: var(--pb-fs-sm); color: var(--pb-ink-2); }
.pb-empty .pb-btn { margin-top: 14px; }
/* 行内空态：夹在段落/列表之间的「这一块没内容」，不要再套一个虚线大盒子
   （列表片段里出现整块虚线框会把上下两段内容割断） */
.pb-empty--inline {
    padding: 12px 2px;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: var(--pb-fs-sm);
    color: var(--pb-ink-3);
}

/* --------------------------------------------------------------------------
   10. 正文块（简介 / 文章正文）
   -------------------------------------------------------------------------- */
.pb-copy {
    font-size: var(--pb-fs-base);
    line-height: 1.85;
    color: var(--pb-ink-2);
    overflow-wrap: anywhere;
}
.pb-copy p + p { margin-top: 8px; }
.pb-copy a { color: var(--pb-primary); text-decoration: underline; text-underline-offset: 2px; }
.pb-copy img { margin: 10px 0; border-radius: var(--pb-r-sm); }

/* --------------------------------------------------------------------------
   11. 页脚（牛栏：顶部草垛束带 + 耳标挂牌 + 频道耳标 + 料槽双栏 + 底栏）
   -------------------------------------------------------------------------- */
.pb-foot {
    margin-top: var(--pb-gap);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1d3f31 0%, #142c23 62%, #10241c 100%);
    color: rgba(241, 248, 243, .72);
    font-size: var(--pb-fs-xs);
}
/* 草垛束带：斜向草茎压在松绿→牛铃铜的渐变上 */
.pb-foot::before {
    content: '';
    display: block;
    height: 10px;
    background:
        repeating-linear-gradient(118deg, rgba(255, 249, 238, .22) 0 1px, transparent 1px 10px),
        linear-gradient(90deg, var(--pb-primary) 0%, var(--pb-accent) 100%);
    opacity: .9;
}
.pb-foot__gate {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr);
    gap: 20px var(--pb-gap);
    padding: 22px 0 18px;
}
.pb-foot__plaque {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding-right: 20px;
    border-right: 1px dashed rgba(241, 248, 243, .2);
}
/* 耳标样式站牌：左上穿孔，右下削角 */
.pb-foot__mark {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 52px;
    padding-left: 4px;
    border-radius: 12px 12px 4px 12px;
    background: linear-gradient(160deg, var(--pb-accent) 0%, var(--pb-accent-d) 100%);
    color: var(--pb-accent-ink);
    font: 800 22px/52px var(--pb-sans);
    text-align: center;
}
.pb-foot__mark::before {
    content: '';
    position: absolute;
    left: 8px; top: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10241c;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45);
}
.pb-foot__intro { min-width: 0; }
.pb-foot__intro strong {
    display: block;
    font-size: var(--pb-fs-lg);
    font-weight: 800;
    letter-spacing: -.01em;
    color: #f6fbf7;
}
.pb-foot__intro p { margin-top: 6px; line-height: 1.8; max-width: 42em; }
.pb-foot__herd { min-width: 0; }
.pb-foot h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--pb-fs-sm);
    color: #f6fbf7;
    margin-bottom: 9px;
}
.pb-foot h3::before {
    content: '';
    flex: 0 0 auto;
    width: 4px; height: 12px;
    border-radius: 1px;
    background: var(--pb-accent);
}
.pb-foot__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-foot__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(241, 248, 243, .2);
    border-radius: 10px 10px 3px 10px;
    color: rgba(241, 248, 243, .82);
    font-size: var(--pb-fs-xs);
    line-height: 1;
    transition: background var(--pb-t) var(--pb-ease), border-color var(--pb-t) var(--pb-ease), color var(--pb-t) var(--pb-ease);
}
.pb-foot__tag::before {
    content: '';
    flex: 0 0 auto;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--pb-accent);
}
.pb-foot__tag:hover { background: rgba(168, 111, 38, .24); border-color: var(--pb-accent); color: #fff; }
.pb-foot__bins {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px var(--pb-gap);
    padding: 16px 0;
    border-top: 1px dashed rgba(241, 248, 243, .2);
}
.pb-foot__bin { min-width: 0; }
.pb-foot__links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pb-foot__links a, .pb-foot__links span { color: rgba(241, 248, 243, .68); }
.pb-foot__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.pb-foot__base {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 11px 0 13px;
    border-top: 1px dashed rgba(241, 248, 243, .2);
    color: rgba(241, 248, 243, .54);
}
.pb-foot__legal { flex: 1 1 320px; min-width: 0; line-height: 1.7; }
.pb-foot__credit { white-space: nowrap; }
.pb-foot__top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 11px;
    border: 1px solid rgba(241, 248, 243, .24);
    border-radius: 999px;
    color: rgba(241, 248, 243, .82);
    white-space: nowrap;
    transition: background var(--pb-t) var(--pb-ease), border-color var(--pb-t) var(--pb-ease), color var(--pb-t) var(--pb-ease);
}
.pb-foot__top::before { content: '\2191'; font-size: 12px; line-height: 1; }
.pb-foot__top:hover { background: var(--pb-accent); border-color: var(--pb-accent); color: var(--pb-accent-ink); }

/* --------------------------------------------------------------------------
   12. 断点
   ⚠️ 列数只能取 6 / 4 / 3 / 2：模板取数固定 24（楼层）与 48（列表），
      24 与 48 都能被这四个数整除 —— 任何断点都不会露半行残卡。
      （换成 5 列会让 48 条剩 3 张残卡，别加这个档。）
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .pb-grid, .pb-grid--list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pb-header__nav { display: none; }          /* 菜单整棵由 JS 搬进抽屉 */
    .pb-header__burger { display: inline-flex; }
    .pb-search input { width: 120px; }
    .pb-foot__gate { grid-template-columns: minmax(0, 1fr); }
    .pb-foot__plaque { padding: 0 0 16px; border-right: 0; border-bottom: 1px dashed rgba(241, 248, 243, .2); }
}
@media (max-width: 767.98px) {
    :root { --pb-shell: 100%; --pb-gap: 12px; --pb-gap-xs: 6px; }
    .pb-grid, .pb-grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pb-search { display: none; }
    .pb-facts--inline { grid-template-columns: minmax(0, 1fr); }
    .pb-facts--inline > div { border-right: 0; border-bottom: 1px dashed var(--pb-line); padding: 4px 0; }
    .pb-facts--inline > div:last-child { border-bottom: 0; }
    .pb-linerow__pic { width: 74px; }
    .pb-foot__bins { grid-template-columns: minmax(0, 1fr); }
    .pb-foot__legal { flex-basis: 100%; }
    .pb-foot__top { margin-left: auto; }
    .pb-pager__meta { width: 100%; margin-left: 0; }
}
@media (max-width: 479.98px) {
    .pb-grid, .pb-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
