/**
 * 首页（聚合版）样式 —— 与 ZBP / ZRG 同一套语言
 * 版心 1170（左右各 135）；色带通栏出血，内容落在版心内
 */

/* /articles/ 文章列表页复用首页的文章卡片，但页面上没有 .zpb-hf 根节点，
   变量会取不到值（按钮底色/字色会失效），这里单独补一份（不含首页那层纸面底纹） */
.zpb-articles {
    --hf-accent: var(--theme-color, #f04494);
    --hf-ink: #241f1c;
    --hf-body: #5a6472;
    --hf-muted: #9aa0a6;
    --hf-paper: #fbf8f3;
    --hf-rule: #efe9e0;
    --hf-sans: inherit;
    --hf-serif: inherit;
    --hf-kai: inherit;
}

.zpb-hf {
    --hf-accent: var(--theme-color, #f04494);
    --hf-ink: #241f1c;
    --hf-body: #5a6472;
    --hf-muted: #9aa0a6;
    --hf-paper: #fbf8f3;
    --hf-rule: #efe9e0;
    /* 站长 2026-10-01：全站字体跟随子比主题默认 —— 这三个变量一律继承，
       页面上原来写 var(--hf-serif/kai/sans) 的地方都会跟着变成主题字体 */
    --hf-sans: inherit;
    --hf-serif: inherit;
    --hf-kai: inherit;
    /* 纸面噪点：纸底色区域（图注带 / 数字带 / 区块间隙）自带颗粒，白卡仍干净 */
    background: #f7f5f1 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.075'/%3E%3C/svg%3E") repeat;
    background-size: auto, 200px 200px;
    /* overflow-x: clip 而不是 hidden：hidden 会让 overflow-y 变成 auto 形成滚动容器，
       把搜索框那两个下拉裁掉（站长 2026-10-02 实拍：下拉底部被统计带切住）。
       clip 在 x 方向照旧裁掉通栏出血，但不产生滚动容器、y 方向可溢出。 */
    overflow-x: clip;
}

.zpb-hf-wrap {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ===================== hero ===================== */
.zpb-hf-hero {
    position: relative;
    height: 470px;
    /* 这里不能 hidden：书影那层自己（.zpb-hf-hero-bg）已经裁好了，
       再在这里裁一次会把搜索框的两个下拉切掉（站长 2026-10-02 实拍）。 */
    overflow: visible;
    background: #251d17;
    display: flex;
    align-items: center;      /* 用 flex 居中，让 hero-inner 的高度=内容高度，黑条才能贴着文字块 */
}
.zpb-hf-hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
}
/* 书影：随意堆叠（位置/角度/尺寸由 PHP 每刷随机），像一摞散放的书 */
.zpb-hf-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
/* 2026-10-02：浏览器实测书影层比 hero 盒子整体低 30px、底部多探出 30px，而 hero 是 overflow:visible（不能改成 hidden，会切掉搜索框下拉），于是书影露到下方统计条上。这里把书影层钉回 hero 的盒子并收口，压过后段任何覆盖。 */
.zpb-hf-hero-bg { position: absolute !important; inset: 0 !important; margin: 0 !important; transform: none !important; }   /* 自成层：书影的 z-index 不会跑到文字上面 */
/* 缓慢浮动：24 张瓦片各自随机时长/相位，错落漂移，像水面上摊开的纸 */
/* 风吹故纸：五拍不等距，像被风一下下掀起纸角，而不是机械往返 */
@keyframes zpb-hf-drift {
    0%   { transform: rotate(var(--rot, 0deg)) translate3d(0, 0, 0) skewY(0deg); }
    22%  { transform: rotate(calc(var(--rot, 0deg) + 1.9deg)) translate3d(7px, -19px, 0) skewY(.34deg); }
    48%  { transform: rotate(calc(var(--rot, 0deg) - .8deg)) translate3d(-4px, 4px, 0) skewY(-.22deg); }
    72%  { transform: rotate(calc(var(--rot, 0deg) + 1.1deg)) translate3d(3px, -9px, 0) skewY(.18deg); }
    88%  { transform: rotate(calc(var(--rot, 0deg) - .5deg)) translate3d(-2px, 3px, 0) skewY(-.1deg); }
    100% { transform: rotate(var(--rot, 0deg)) translate3d(0, 0, 0) skewY(0deg); }
}

/* 旧纸的冷调：整体去饱和、略压亮，像隔着一层年头 */
.zpb-hf-hero-bg {
    filter: saturate(.55) contrast(1.08) brightness(.86);
}

/* 四角压暗 + 一层缓缓呼吸的雾气 */
@keyframes zpb-hf-haze {
    /* 只呼吸透明度，不做放大：scale 会让这一层溢出 hero（hero 是 overflow:visible，
       为了不切掉搜索下拉），从而盖到下方统计条上（站长 2026-10-02 实拍）。 */
    0%, 100% { opacity: .5; }
    50%      { opacity: 1;  }
}
/* 噪点/纸纹：一层极淡的胶片颗粒，压住"数码感" */
.zpb-hf-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    opacity: .20; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
}

.zpb-hf-hero-scrim::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 74% 80% at 50% 44%, transparent 32%, rgba(12, 16, 22, .70) 100%);
}
.zpb-hf-hero-scrim::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 62% 72% at 50% 118%, rgba(214, 201, 180, .22), transparent 72%);
    animation: zpb-hf-haze 38s ease-in-out infinite;
}
.zpb-hf-hero-page,
.zpb-hf-hero-pic {
    transform: rotate(var(--rot, 0deg));
    animation: zpb-hf-drift var(--dur, 60s) ease-in-out var(--delay, 0s) infinite;
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    .zpb-hf-hero-page,
    .zpb-hf-hero-pic { animation: none; }
}

.zpb-hf-hero-pic {
    position: absolute;
    display: block;
    overflow: hidden;
    border-radius: 2px;
    background: #efe7d8;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .18) inset;
    text-decoration: none;
}
.zpb-hf-hero-pic img { width: 100%; height: auto; display: block; }   /* 不裁切：高度由 aspect-ratio 推 */
.zpb-hf-hero-pic:hover { box-shadow: 0 22px 50px rgba(0, 0, 0, .55); }
/* 内页：比封面薄一点、淡一点，糊满整条 */
.zpb-hf-hero-page {
    position: absolute;
    display: block;
    overflow: hidden;
    border-radius: 1px;
    background: #f3eee2;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
    opacity: .94;
}
.zpb-hf-hero-page img { width: 100%; height: auto; display: block; }   /* 不裁切 */
.zpb-hf-hero-page--front { box-shadow: 0 16px 34px rgba(0, 0, 0, .48); opacity: 1; }
.zpb-hf-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* 顶部压得更沉：透明页头的白字/白 logo 要压得住书影 */
    background: linear-gradient(to bottom,
        rgba(17, 20, 26, .74) 0,
        rgba(20, 24, 30, .30) 120px,
        rgba(22, 26, 33, .28) 100%);
}
/* 搜索处的黑色半透明条子：通栏 */
/* 黑条：不再写死 top/height，改用 hero-inner 的伪元素自动贴合「有字的那一整块」 */
.zpb-hf-hero-bar { display: none; }
.zpb-hf-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}
/* 通栏黑条：把眉标、主标、副标、搜索框、热词「全框起来」（站长 2026-10-01） */
.zpb-hf-hero-inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50vw;
    margin-left: -50vw;      /* 用视口定位，左右一定贴到浏览器两边（不受父容器宽度影响） */
    width: 100vw;
    top: -20px;
    bottom: -20px;
    background: rgba(17, 16, 20, .44);
}
.zpb-hf-eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: .32em;
    opacity: .78;
    font-family: var(--hf-sans);
}
.zpb-hf-title {
    margin: 0 0 10px;
    font-family: var(--hf-serif);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
    color: #fff;
}
.zpb-hf-sub {
    margin: 0 0 26px;
    font-size: 14.5px;
    opacity: .88;
    font-family: var(--hf-sans);
}
.zpb-hf-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 720px;
    max-width: 100%;
    height: 54px;
    padding: 0 8px 0 16px;
    background: rgba(255, 255, 255, .95);
    border-radius: 27px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    box-sizing: border-box;
}
.zpb-hf-search-icon { color: var(--hf-muted); font-size: 15px; margin-right: 10px; }
.zpb-hf-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 13.5px;
    color: #4a4a4a;
    outline: none;
    box-shadow: none;
}
.zpb-hf-search input::placeholder { color: #b4b9c0; }
.zpb-hf-search button {
    flex: 0 0 auto;
    width: 84px;
    height: 36px;
    min-height: 0;
    border: 0;
    border-radius: 18px;
    background: var(--hf-accent);
    color: #fff;
    font-size: 13.5px;
    cursor: pointer;
}
.zpb-hf-hot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
    justify-content: center;
}
.zpb-hf-hot-label { font-size: 12.5px; opacity: .7; font-family: var(--hf-kai); }
.zpb-hf-chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .40);
    border-radius: 15px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12.5px;
    font-family: var(--hf-kai);
    text-decoration: none;
}
.zpb-hf-chip:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.zpb-hf-hero-caption {
    max-width: 1170px;
    margin: 0 auto;
    padding: 26px 15px 0;
    text-align: left;                        /* 站长：这行靠左（贴在版心左缘） */
    font-size: 12px;
    color: #8a8079;
    font-family: var(--hf-kai);
}
.zpb-hf-hero-caption a { color: #6b6560; text-decoration: none; border-bottom: 1px solid #ded6c8; }
/* 2026-10-02：hero 的书影底图层（.zpb-hf-hero-bg，position:absolute + z-index:0）与
   颗粒层（.zpb-hf-hero::after，z-index:1）都会盖住下面这行说明脚注——脚注原本是个
   静态元素、没有自己的层，在有定位的兄弟元素面前必然被画在下面（站长手机端实拍：
   脚注被图片吃掉上半截）。给它一个明确的层，让它回到图片之上。 */
.zpb-hf-hero-caption { position: relative; z-index: 2; }
.zpb-hf-hero-caption a:hover { color: var(--hf-accent); border-color: var(--hf-accent); }

/* ===================== 数字带 ===================== */
.zpb-hf-stats { position: relative; overflow: hidden; background: #f7f5f1; padding: 28px 0 60px; }
.zpb-hf-stats .zpb-hf-wrap { display: flex; justify-content: center; }
/* 数字组：自己就是一个居中的 flex；「本站收录」绝对定位贴在它左边、并留 20px 间距，
   既不占位（数字真居中），又能随数字组宽度自动跟过去 */
.zpb-hf-stats-group {
    position: relative;
    display: flex; align-items: baseline;
    gap: 30px; flex-wrap: wrap;
}
.zpb-hf-stats-label {
    position: absolute; right: 100%; margin-right: 20px;
    top: 50%; transform: translateY(-50%);
    white-space: nowrap;
    font-size: 12.5px; color: var(--hf-muted); letter-spacing: .06em;
}
@media (max-width: 767px) {
    .zpb-hf-stats-group { flex-wrap: wrap; }
    .zpb-hf-stats-label { position: static; margin: 0 0 6px; transform: none; }
}
.zpb-hf-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding-left: 30px;
    position: relative;
}
/* 分隔改成一枚朱砂点（旋转 45° 的小方），比竖线更像旧书里的记号 */
.zpb-hf-stat + .zpb-hf-stat::before {
    content: "";
    position: absolute;
    left: -3px; top: 50%;
    width: 6px; height: 6px; margin-top: -4px;
    background: var(--hf-accent);
    opacity: .45;
    transform: rotate(45deg);
}
.zpb-hf-stat b { font-size: 36px; font-weight: 700; color: var(--hf-ink); line-height: 1; }
.zpb-hf-stat span { font-size: 12.5px; color: var(--hf-muted); letter-spacing: .04em; }
.zpb-hf-stat:hover b { color: var(--hf-accent); }

/* ===================== 色带 + 区块头 ===================== */
.zpb-hf-band { padding: 40px 0; }
.zpb-hf-band--white { background: #fff; }
.zpb-hf-band--paper { background: var(--hf-paper); border-top: 1px solid var(--hf-rule); border-bottom: 1px solid var(--hf-rule); }
.zpb-hf-head { display: flex; align-items: center; gap: 10px; }
.zpb-hf-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--hf-accent);
    color: #fff;
    font-family: var(--hf-serif);
    font-size: 13px;
    line-height: 1;
}
.zpb-hf-seal--lg { width: 30px; height: 30px; font-size: 18px; border-radius: 6px; }
.zpb-hf-head h2 { margin: 0; font-family: var(--hf-serif); font-size: 17px; font-weight: 700; color: var(--hf-ink); }
.zpb-hf-head-right { margin-left: auto; }
.zpb-hf-more { font-size: 12.5px; color: var(--hf-muted); text-decoration: none; font-family: var(--hf-kai); }
.zpb-hf-more:hover { color: var(--hf-accent); }
.zpb-hf-head-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 0 30px;
    font-size: 12.5px;
    color: #8a8079;
    font-family: var(--hf-kai);
}
.zpb-hf-head-note .zpb-hf-more { margin-left: auto; }

/* ===================== 随机推荐 ===================== */
.zpb-hf-rec { position: relative; margin-top: 22px; }
.zpb-hf-feature { display: flex; gap: 40px; align-items: flex-start; }
.zpb-hf-feature-pic {
    position: relative;
    flex: 0 0 350px;
    height: 290px;
    background: #f6f2ea;
    border: 1px solid #e9e1d2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* 主推图：内页 + 左转 24° + 刚好铺满（不留白、也不多放大）+ 胶片颗粒 */
.zpb-hf-feature-pic img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
    transition: transform .6s cubic-bezier(.22, .61, .36, 1), filter .45s ease;
    transform-origin: 50% 50%;
    filter: saturate(.7) contrast(1.06) brightness(.97);
}
.zpb-hf-feature-pic::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    opacity: .30; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.075'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}
.zpb-hf-pic-empty { color: #c3c7ce; font-size: 12.5px; }
.zpb-hf-feature-info { flex: 1 1 auto; min-width: 0; padding-top: 8px; border-left: 1px solid var(--hf-rule); padding-left: 40px; margin-left: -20px; }
.zpb-hf-feature-info h3 { margin: 0 0 6px; font-family: var(--hf-serif); font-size: 30px; font-weight: 700; line-height: 1.25; }
.zpb-hf-feature-info h3 a { color: var(--hf-ink); text-decoration: none; }
.zpb-hf-feature-meta { margin: 0 0 14px; font-size: 13px; color: var(--hf-body); font-family: var(--hf-kai); }
.zpb-hf-feature-desc { margin: 0 0 22px; font-size: 13.5px; line-height: 1.8; color: var(--hf-muted); }
.zpb-hf-feature-btns { display: flex; gap: 12px; }
.zpb-hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
}
.zpb-hf-btn--solid { background: var(--hf-accent); color: #fff; }
.zpb-hf-btn--solid:hover { color: #fff; opacity: .9; }
.zpb-hf-btn--ghost { border: 1.4px solid var(--hf-accent); color: var(--hf-accent); background: #fff; }

.zpb-hf-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; margin-top: 44px; }
.zpb-hf-strip-pic {
    display: block;
    height: 200px;
    background: #f6f2ea;
    border: 1px solid #e9e1d2;
    border-radius: 4px;
    overflow: hidden;
}
/* 条带小图：与主推同款。框更扁（350x200），24° 覆盖所需 1.63，取 1.70 */
.zpb-hf-strip-pic { position: relative; }
.zpb-hf-strip-pic img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
    transition: transform .6s cubic-bezier(.22, .61, .36, 1), filter .45s ease;
    transform-origin: 50% 50%;
    filter: saturate(.7) contrast(1.06) brightness(.97);
}
.zpb-hf-strip-pic::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    opacity: .30; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.075'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}
.zpb-hf-strip-item h4 { margin: 14px 0 6px; font-family: var(--hf-serif); font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.zpb-hf-strip-item h4 a { color: var(--hf-ink); text-decoration: none; }
.zpb-hf-strip-item p { margin: 0; font-size: 11.5px; color: var(--hf-muted); font-family: var(--hf-kai); }

/* ===================== 地名（表格） ===================== */
.zpb-hf-geo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 22px;
    margin-top: 18px;
}
.zpb-hf-geo-item {
    display: block;
    padding: 9px 0 8px;
    border-bottom: 1px solid #e7dfd0;
    font-family: var(--hf-serif);
    font-size: 14px;
    color: #4a423a;
    text-decoration: none;
}
.zpb-hf-geo-item:hover { color: var(--hf-accent); border-color: var(--hf-accent); }

/* ===================== 地名词条 ===================== */
.zpb-hf-entries { padding: 40px 0 8px; }
.zpb-hf-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 30px; margin-top: 22px; }
.zpb-hf-entry {
    display: flex;
    background: #fff;
    border: 1px solid #f1ece3;
    border-radius: 6px;
    overflow: hidden;
    min-height: 116px;
}
.zpb-hf-entry-pic {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    background: #f7f2e8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}
.zpb-hf-entry-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zpb-hf-entry-initial { font-family: var(--hf-serif); font-size: 40px; font-weight: 700; color: #b9ae9c; line-height: 1; }
.zpb-hf-entry-info { flex: 1 1 auto; min-width: 0; padding: 16px 16px 0 20px; }
.zpb-hf-entry-info h3 { margin: 0 0 10px; font-family: var(--hf-serif); font-size: 15px; font-weight: 700; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.zpb-hf-entry-info h3 a { color: var(--hf-ink); text-decoration: none; }
.zpb-hf-entry-info p { margin: 0 0 10px; font-size: 12px; color: #8a8079; font-family: var(--hf-kai); display: flex; align-items: center; gap: 8px; }
.zpb-hf-tag {
    display: inline-flex;
    align-items: center;
    height: 21px;
    padding: 0 9px;
    border-radius: 10px;
    background: #fdf1f7;
    color: #c0558a;
    font-size: 11.5px;
    font-family: var(--hf-sans);
}
.zpb-hf-entry-more { font-size: 12.5px; color: var(--hf-accent); text-decoration: none; }

/* ===================== 文章 ===================== */
.zpb-hf-post { padding: 32px 0 56px; }
/* 站长 2026-10-01：文章区恢复一行一个（改回单栏后卡片尺寸也用单栏规格） */
.zpb-hf-post-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 22px; }
/* 整卡 hover：抬起 + 投影 + 描边加深，纸色竖栏微微加深（与推荐区卡片的动效语言一致） */
.zpb-hf-post-card { transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease; }
.zpb-hf-post-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(36,31,28,.13); border-color: #e3d7c6; }
.zpb-hf-post-card:hover .zpb-hf-post-side { background: linear-gradient(180deg, #f3ede2 0%, #eee6d9 100%); }
.zpb-hf-post-card:hover .zpb-hf-post-main h3 a { color: var(--hf-accent); }
@media (prefers-reduced-motion: reduce) {
    .zpb-hf-post-card, .zpb-hf-post-card:hover { transition: none; transform: none; }
}
.zpb-hf-post-card {
    display: flex;
    margin-top: 0;
    background: #fff;
    border: 1px solid #f1ece3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(25, 22, 20, .05);
}
.zpb-hf-post-side {
    position: relative;
    flex: 0 0 290px;
    background: var(--hf-paper);
    padding: 24px 30px;
    box-sizing: border-box;
}
.zpb-hf-post-wm {
    position: absolute;
    right: 30px;
    top: 24px;
    font-family: var(--hf-serif);
    font-size: 30px;
    font-weight: 700;
    color: rgba(36, 31, 28, .10);
    writing-mode: vertical-rl;
    line-height: 1.1;
}
.zpb-hf-post-date { position: absolute; left: 30px; bottom: 24px; font-size: 12.5px; color: #8a8079; font-family: var(--hf-kai); }
.zpb-hf-post-side .zpb-hf-seal--lg { position: absolute; left: 30px; bottom: 56px; }
.zpb-hf-post-main { flex: 1 1 auto; min-width: 0; padding: 30px 40px; box-sizing: border-box; }
.zpb-hf-post-main h3 { margin: 0 0 12px; font-family: var(--hf-serif); font-size: 23px; font-weight: 700; line-height: 1.4; }
.zpb-hf-post-main h3 a { color: var(--hf-ink); text-decoration: none; }
/* 作者 · 发布时间 · 浏览量 */
.zpb-hf-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 0 0 12px; font-size: 12.5px; color: #8a8079; }
.zpb-hf-post-meta span { position: relative; }
.zpb-hf-post-meta span + span::before { content: ""; position: absolute; left: -9px; top: 50%; width: 1px; height: 11px; margin-top: -6px; background: #e6dfd6; }
.zpb-hf-post-main p { margin: 0 0 22px; font-size: 13.5px; line-height: 1.8; color: var(--hf-muted); }
.zpb-hf-post-btns { display: flex; align-items: center; gap: 16px; }
.zpb-hf-post-cats { display: inline-flex; align-items: center; gap: 8px; }
/* 站长 2026-10-02：分类胶囊挪到图片区（纸色竖栏左上角） */
.zpb-hf-post-side .zpb-hf-post-cats {
    position: absolute;
    left: 30px;
    top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 60px);
    z-index: 1;
}
.zpb-hf-post-side .zpb-hf-post-tag { background: #fff; }

/* 站长 2026-10-02：作者/日期/浏览/被赞 下移到「阅读全文」这一排——左信息、右按钮 */
.zpb-hf-post-main .zpb-hf-post-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 4px;
}
.zpb-hf-post-btns .zpb-hf-post-meta { flex: 1 1 auto; min-width: 0; margin: 0; }
.zpb-hf-post-btns .zpb-hf-btn { flex: none; }
.zpb-hf-post-tag { font-size: 12.5px; color: #8a8079; text-decoration: none; padding: 2px 10px; border-radius: 10px; background: #f6f2ea; transition: color .3s ease, background .3s ease; }
/* !important：子比主题有更具体的 a 颜色规则，不加会被顶回去，hover 时字色不变 */
.zpb-hf-post-tag:hover { color: var(--hf-accent) !important; background: #fdeaf2; }

/* ===================== 移动端 ===================== */
@media (max-width: 900px) {
    .zpb-hf-rec { display: flex; align-items: center; gap: 0; }
    .zpb-hf-rec-body { flex: 1 1 auto; min-width: 0; }
    .zpb-hf-feature { flex-direction: column; gap: 20px; }
    .zpb-hf-feature-pic { flex: none; width: 100%; height: 240px; }
    .zpb-hf-feature-info { border-left: 0; padding-left: 0; margin-left: 0; padding-top: 0; }
    .zpb-hf-strip { gap: 20px; margin-top: 30px; }
    .zpb-hf-geo { grid-template-columns: repeat(2, 1fr); }
    .zpb-hf-entry-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
    /* ---------- hero：高度随内容，别在文字下面留一条空的黑带 ---------- */
    .zpb-hf-hero { height: auto; min-height: 320px; padding: 92px 0 30px; }
    .zpb-hf-hero-inner { height: auto; }
    .zpb-hf-hero-inner::before { top: -14px; bottom: -14px; }          /* 黑条贴合文字块 */
    .zpb-hf-eyebrow { font-size: 11px; letter-spacing: .1em; margin-bottom: 12px; }
    .zpb-hf-title { font-size: 23px; line-height: 1.32; padding: 0 14px; }
    .zpb-hf-sub { font-size: 12.5px; line-height: 1.7; padding: 0 16px; margin-top: 10px; }
    .zpb-hf-search { height: 44px; border-radius: 22px; margin-top: 16px; }
    .zpb-hf-search button { width: 72px; height: 32px; border-radius: 16px; font-size: 12.5px; }
    .zpb-hf-hot { margin-top: 14px; gap: 8px; }
    .zpb-hf-hot-label { font-size: 11.5px; }
    .zpb-hf-chip { font-size: 12px; padding: 5px 12px; }
    .zpb-hf-hero-pic:nth-child(n+3) { display: none; }                 /* 手机只留一张封面书 */

    /* 手机上的瓦片：桌面那套是 28-34% 宽的小瓦片，在 430px 手机上盖不满整条 → 底部露空。
       改成「少而大」——只留 6 张内页 + 1 张封面，每张 52-66% 宽，两三行叠满。
       位置用 !important 覆盖 PHP 写进内联样式的桌面落点。 */
    .zpb-hf-hero-bg > .zpb-hf-hero-page:nth-child(n+7) { display: none; }
    .zpb-hf-hero-bg > .zpb-hf-hero-page:nth-child(1) { left: -12% !important; top: -10% !important; width: 68% !important; }
    .zpb-hf-hero-bg > .zpb-hf-hero-page:nth-child(2) { left:  34% !important; top:  -8% !important; width: 66% !important; }
    .zpb-hf-hero-bg > .zpb-hf-hero-page:nth-child(3) { left: -10% !important; top:  26% !important; width: 64% !important; }
    .zpb-hf-hero-bg > .zpb-hf-hero-page:nth-child(4) { left:  38% !important; top:  30% !important; width: 66% !important; }
    .zpb-hf-hero-bg > .zpb-hf-hero-page:nth-child(5) { left: -14% !important; top:  62% !important; width: 62% !important; }
    .zpb-hf-hero-bg > .zpb-hf-hero-page:nth-child(6) { left:  40% !important; top:  66% !important; width: 64% !important; }
    /* 封面书：手机只留第一张，放在中段偏前 */
    .zpb-hf-hero-bg > .zpb-hf-hero-pic:nth-child(1) { left: 20% !important; top: 34% !important; width: 46% !important; }
    /* 顶端那三张内页（--front）手机上不参与，避免糊住封面 */
    .zpb-hf-hero-page--front { display: none; }

    /* ---------- 数字带：2×2 网格，居中且左右对齐 ---------- */
    .zpb-hf-hero-caption { font-size: 11.5px; line-height: 1.7; padding: 18px 15px 0; }
    .zpb-hf-stats { padding: 20px 0 34px; }
    .zpb-hf-stats .zpb-hf-wrap { display: block; }
    .zpb-hf-stats-label { position: static; transform: none; margin: 0 0 14px; text-align: center; grid-column: 1 / -1; }
    .zpb-hf-stats-group {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 16px 8px; max-width: 320px; margin: 0 auto;
    }
    .zpb-hf-stat { padding-left: 0; justify-content: center; }
    .zpb-hf-stat + .zpb-hf-stat::before { display: none; }             /* 网格里不要朱砂点分隔 */
    .zpb-hf-stat b { font-size: 24px; }
    .zpb-hf-stat span { font-size: 12px; }

    .zpb-hf-strip { grid-template-columns: 1fr; }
    .zpb-hf-strip-pic { height: 180px; }
    .zpb-hf-post-grid { grid-template-columns: 1fr; gap: 16px; }
    .zpb-hf-post-card { flex-direction: column; }
    .zpb-hf-post-side { flex: none; height: 150px; }
    .zpb-hf-post-side .zpb-hf-post-cats { left: 20px; top: 18px; max-width: calc(100% - 40px); }
    .zpb-hf-post-side .zpb-hf-seal--lg { display: none; }        /* 手机上让位给分类胶囊 */
    .zpb-hf-post-main { padding: 22px 20px; }
    .zpb-hf-post-main h3 { font-size: 19px; }
    .zpb-hf-post-btns { flex-wrap: wrap; gap: 12px; }            /* 信息多时按钮掉到下一行 */
    /* 站长 2026-10-02：手机不要「阅读全文」按钮（标题本身可点） */
    .zpb-hf-post-btns .zpb-hf-btn--solid { display: none; }
    .zpb-hf-post-btns { margin-top: 2px; }
}


/* ===================== 顶到页顶 + 透明页头（照子比「顶部多功能组件」那套） ===================== */
/* 站长 2026-10-01：顶部露缝 —— 原来靠 margin-top:-88px 猜数值，只对未登录访客准；
   登录后多了 32px 管理条、body 顶距变成 100px，就露出 12px 底色。现在直接把顶距归零，不再猜。 */
body.zpb-home-aggregate-active { padding-top: 0 !important; }                                  /* 顶部 88px 顶距清零 */
body.zpb-home-aggregate-active.admin-bar { padding-top: var(--wp-admin--admin-bar--height, 32px) !important; }  /* 登录后台时扣掉管理条 */
body.zpb-home-aggregate-active .zpb-hf { margin-top: 0; }

/* 页头：页面在顶部时透明 + 白字（跟子比 show-slide 形态一致） */
body.zpb-home-aggregate-active .header {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
    transition: background .25s ease, box-shadow .25s ease;
}
/* 题头那层「磨砂玻璃」是主题加的 backdrop-filter，会在首屏糊出一条发白的横带（站长：很丑）
   —— 首屏去掉它，做到真正全透明；滚过后恢复白底时再加回来 */
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header::before,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header::after,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar::before,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar::after {
    background: transparent !important;
}
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar a,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar .nav-link,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar .toggle-search,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar button:not(.but) {
    color: #fff !important;
}
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar svg,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar .fa,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar i {
    color: #fff !important;
    fill: currentColor;
}
/* 站标是深色图，透明头上用滤镜翻白 */
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar-logo img,
body.zpb-home-aggregate-active:not(.zpb-hf-scrolled) .header .navbar-header img {
    filter: brightness(0) invert(1);
}
/* 滚过首屏后恢复白底深字 */
body.zpb-home-aggregate-active.zpb-hf-scrolled .header {
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 2px 12px rgba(25, 22, 20, .06) !important;
}


/* ===================== 交互动效（站长 2026-10-01） ===================== */
/* 1. 滚动进场：区块淡入上浮，卡片逐张错开 */
/* 过渡写在基础类上：这样无论 hide/in 哪个在，动效都在（hide 与 in 同时存在时由 !important 定胜负） */
.zpb-hf-stats, .zpb-hf-rec, .zpb-hf-geo, .zpb-hf-entries, .zpb-hf-post {
    transition: opacity .75s ease, transform .75s cubic-bezier(.22, .61, .36, 1);
}
.zpb-hf-hide { opacity: 0; transform: translateY(26px); }
.zpb-hf-in { opacity: 1; transform: none; }   /* 揭示时 JS 会把 zpb-hf-hide 摘掉，所以不需要 !important */

/* 换批时的加载态 */
.zpb-hf-in .zpb-hf-strip-item,
.zpb-hf-in .zpb-hf-entry { animation: zpb-hf-rise .7s cubic-bezier(.22, .61, .36, 1) backwards; }
.zpb-hf-in .zpb-hf-strip-item:nth-child(2), .zpb-hf-in .zpb-hf-entry:nth-child(2) { animation-delay: .09s; }
.zpb-hf-in .zpb-hf-strip-item:nth-child(3), .zpb-hf-in .zpb-hf-entry:nth-child(3) { animation-delay: .18s; }
.zpb-hf-in .zpb-hf-entry:nth-child(4) { animation-delay: .27s; }
.zpb-hf-in .zpb-hf-entry:nth-child(5) { animation-delay: .36s; }
.zpb-hf-in .zpb-hf-entry:nth-child(6) { animation-delay: .45s; }
@keyframes zpb-hf-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* 2. 推荐位：悬停把书"扶正一点 + 抬起来" */
/* 站长：鼠标移上去不要转动，只轻微放大一点（倾角保持原样） */
.zpb-hf-feature-pic:hover img,
.zpb-hf-strip-pic:hover img {
    transform: rotate(var(--rot, 0deg)) scale(calc(var(--sc, 1) * 1.045));
    filter: saturate(.88) contrast(1.05) brightness(1.05);
}
.zpb-hf-feature-pic, .zpb-hf-strip-pic { transition: box-shadow .45s ease; }
.zpb-hf-feature-pic:hover, .zpb-hf-strip-pic:hover { box-shadow: 0 14px 34px rgba(36, 31, 28, .16); }
.zpb-hf-strip-item { transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.zpb-hf-strip-item:hover { transform: translateY(-5px); }
.zpb-hf-strip-item h4 a:hover, .zpb-hf-feature-info h3 a:hover { color: var(--hf-accent); }

/* 4. 数字：悬停轻抬 + 转主题色 */
.zpb-hf-stat { transition: transform .4s cubic-bezier(.22, .61, .36, 1); }
.zpb-hf-stat:hover { transform: translateY(-3px); }
.zpb-hf-stat b, .zpb-hf-stat span { transition: color .35s ease; }
.zpb-hf-stat:hover b { color: var(--hf-accent); }

/* 5. 地名表：整行滑出一点、右箭头跟出来 */
.zpb-hf-geo-item { transition: background .3s ease, padding .3s ease; }
.zpb-hf-geo-item:hover { background: rgba(240, 68, 148, .045); }
.zpb-hf-geo-item span::after,
.zpb-hf-geo-item a::after { content: "›"; opacity: 0; margin-left: 6px; transition: opacity .3s ease, margin-left .3s ease; color: var(--hf-accent); }
.zpb-hf-geo-item:hover span::after, .zpb-hf-geo-item:hover a::after { opacity: 1; margin-left: 10px; }

/* 6. 词条卡：抬起 + 图片轻推近 */
.zpb-hf-entry { transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease, border-color .3s ease; }
.zpb-hf-entry:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(36, 31, 28, .12); border-color: rgba(240, 68, 148, .28); }
.zpb-hf-entry:hover .zpb-hf-entry-pic img { transform: scale(1.06); }
.zpb-hf-entry-pic img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }

/* 7. 文章：标题转色 + 阅读全文箭头滑出 */
.zpb-hf-post-card:hover .zpb-hf-post-main h3 { color: var(--hf-accent); }
.zpb-hf-post-main h3 { transition: color .35s ease; }
.zpb-hf-post-card:hover .zpb-hf-post-btns .zpb-hf-btn--solid { box-shadow: 0 10px 22px rgba(240, 68, 148, .3); }
.zpb-hf-post-card .zpb-hf-post-tag { transition: color .3s ease; }
.zpb-hf-post-card:hover .zpb-hf-post-tag { color: var(--hf-accent); }

/* 8. 搜索框 / 热词：聚焦浮起、悬停填色 */
.zpb-hf-search { transition: box-shadow .35s ease, transform .35s ease; }
.zpb-hf-search:focus-within { box-shadow: 0 18px 44px rgba(0, 0, 0, .3); transform: translateY(-2px); }
.zpb-hf-chip { transition: background .3s ease, color .3s ease, transform .3s ease; }
.zpb-hf-chip:hover { background: rgba(255, 255, 255, .22); color: #fff; transform: translateY(-2px); }
.zpb-hf-btn { transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease, background .3s ease; }
.zpb-hf-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(240, 68, 148, .28); }

/* 9. 尊重系统"减少动态效果" */
@media (prefers-reduced-motion: reduce) {
    .zpb-hf-hide { opacity: 1 !important; transform: none !important; }
    .zpb-hf-feature-pic img, .zpb-hf-strip-pic img,
    .zpb-hf-strip-item, .zpb-hf-entry, .zpb-hf-stat,
    .zpb-hf-btn, .zpb-hf-chip, .zpb-hf-search { transition: none !important; }
    .zpb-hf-in .zpb-hf-strip-item, .zpb-hf-in .zpb-hf-entry { animation: none !important; }
}

/* 未收录内容的地区：不给链接（站长 2026-10-01），颜色压一档、无悬停反馈 */
.zpb-hf-geo-item--off { color: #a9a299 !important; cursor: default; }
.zpb-hf-geo-item--off:hover { background: transparent !important; }
.zpb-hf-geo-item--off span::after { display: none !important; }

/* ==========================================================================
   搜索分类下拉 + 层级（站长 2026-10-02）
   1) 头部搜索框里加一个和子比一样的「搜索分类」下拉（分类清单来自 zib_get_search_types()）
   2) 搜索分类下拉与即时下拉都要浮在下方统计卡之上（原来被统计卡盖住）
   ========================================================================== */
.zpb-hf-hero { position: relative; z-index: 20; }          /* 整块 hero 抬到统计带之上 */
.zpb-hf-search { position: relative; z-index: 40; }

.zpb-hf-search .zpb-hf-type { flex: none; margin-right: 6px; }
.zpb-hf-search .zpb-hf-type .dropdown > a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 10px;
    color: #4a4f57;                 /* 搜索框本身是白底胶囊，字要用深色（原来按黑底写成白字，看不见） */
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.zpb-hf-search .zpb-hf-type .dropdown > a:hover { color: var(--hf-accent); }
.zpb-hf-search .zpb-hf-type .dropdown-menu {
    z-index: 70;
    min-width: 128px;
    margin-top: 8px;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(20, 16, 14, .16);
}
.zpb-hf-search .zpb-suggest { z-index: 70; }               /* 即时下拉同样压在统计卡之上 */

/* 统计带（数字带/推荐区）降低层级，避免盖住搜索下拉 */
.zpb-hf-stats, .zpb-hf-rec, .zpb-hf-geo, .zpb-hf-entries { position: relative; z-index: 1; }

@media (max-width: 640px) {
    .zpb-hf-search .zpb-hf-type .dropdown > a { height: 34px; padding: 0 6px; font-size: 12.5px; }
}
