/* ============================================================
   TOPBRAND 数字报 - 数字版面样式
   报纸整版样式：报头 + 双细线 + 分栏正文 + 本版导读
   ============================================================ */
/* ===== 报头/标语专用书法字体：/SanJiHuaChaoTi.ttf ===== */
@font-face {
    font-family: "SanJiHuaChaoTi";
    src: url("/SanJiHuaChaoTi.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;   /* 字体未加载完先用后备字体显示，避免空白 */
}

:root {
    /* 书法字体栈：优先用站点的 SanJiHuaChaoTi，缺失时回退到系统宋体 */
    --np-brush: "SanJiHuaChaoTi", "Songti SC", "SimSun", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
    --np-page: #fbf9f4;
    --np-paper: #e7e1d3;
    --np-ink: #1b1a16;
    --np-ink-2: #4f4b42;
    --np-ink-3: #7d7768;
    --np-rule: #c4bcaa;
    --np-rule-strong: #2b2822;
    --np-red: #9c211b;
    --np-blue: #22405f;
    --np-bar: #191a1d;
    --np-serif: "Songti SC", "SimSun", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
    --np-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body.np-body {
    background: var(--np-paper);
    background-image:
        radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px),
        radial-gradient(rgba(0,0,0,.02) 1px, transparent 1px);
    background-size: 7px 7px, 11px 11px;
    background-position: 0 0, 3px 4px;
    color: var(--np-ink);
    font-family: var(--np-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.np-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部页头（共用） ---------- */
.np-header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    box-shadow: 0 1px 0 rgba(28,24,16,.04), 0 10px 30px rgba(28,24,16,.06);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .np-header { background: #ffffff; }
}
/* 顶部品牌色条 */
.np-header::before {
    content: ''; display: block; height: 3px;
    background: linear-gradient(90deg, #7a1510, var(--np-red) 20%, #c9503f 50%, var(--np-red) 80%, #7a1510);
}
/* 报纸式双细线：粗线 + 下方细线 */
.np-header::after {
    content: ''; display: block; height: 1px;
    background: var(--np-rule-strong);
    box-shadow: 0 3px 0 0 var(--np-rule);
}
.np-header-inner {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px 18px; min-height: 72px; padding: 10px 0;
}

/* Logo 与报名之间的竖分隔线 */
.np-logo { position: relative; flex: 0 0 auto; display: flex; align-items: center; padding-right: 20px; }
.np-logo::after {
    content: ''; position: absolute; right: 0; top: 50%; width: 1px; height: 36px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, transparent, #ddd4c2 24%, #ddd4c2 76%, transparent);
}
.np-logo img { height: 44px; width: auto; display: block; }
.np-logo-empty::after { display: none; }   /* 图片缺失时隐藏分隔线 */

/* 报名 + 标语 */
.np-nameplate {
    flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px;
    padding-left: 20px; border-left: 1px solid #eee7d8;
}
.np-logo-empty ~ .np-nameplate { padding-left: 0; border-left-color: transparent; }
.np-nameplate-main {
    font-family: var(--np-brush); font-size: 29px; font-weight: 700; color: var(--np-ink);
    letter-spacing: 3px; line-height: 1.05;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-nameplate-sub {
    font-family: var(--np-serif); font-size: 11.5px; color: var(--np-red);
    letter-spacing: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-nameplate-sub::before {
    content: ''; display: inline-block; vertical-align: middle;
    width: 20px; height: 1px; margin-right: 10px;
    background: currentColor; opacity: .45;
}

/* 导航：胶囊分段控件 */
.np-nav {
    flex: 0 0 auto; display: flex; align-items: center; gap: 2px;
    padding: 3px; background: #f7f4ed; border: 1px solid #ece5d6; border-radius: 999px;
}
.np-nav a {
    display: inline-block; padding: 7px 18px; border-radius: 999px;
    font-size: 14px; color: #4b453a; white-space: nowrap;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.np-nav a:hover { color: var(--np-red); background: rgba(156,33,27,.07); }
.np-nav a.active {
    color: #fff; font-weight: 700; background: var(--np-red);
    box-shadow: 0 4px 12px rgba(156,33,27,.26);
}

/* 搜索：圆角连体输入框 */
.np-search { flex: 0 0 auto; display: flex; align-items: center; }
.np-search-field { position: relative; display: flex; align-items: center; }
.np-search-field svg {
    position: absolute; left: 13px; width: 15px; height: 15px;
    color: #a49b8b; pointer-events: none; transition: color .15s ease;
}
.np-search input[type=text], .np-search input[type=search] {
    width: 216px; padding: 9px 15px 9px 35px; font-size: 13px; color: #111;
    border: 1px solid #ded6c6; border-right: none; border-radius: 999px 0 0 999px;
    background: #fbfaf6; outline: none; -webkit-appearance: none; appearance: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.np-search input[type=text]::placeholder, .np-search input[type=search]::placeholder { color: #a49b8b; }
.np-search input[type=text]:focus, .np-search input[type=search]:focus {
    border-color: var(--np-red); background: #fff; box-shadow: inset 0 0 0 1px var(--np-red);
}
.np-search-field:focus-within svg { color: var(--np-red); }
.np-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.np-search button {
    padding: 9px 20px; font-size: 13px; color: #fff; cursor: pointer;
    background: var(--np-red); border: 1px solid var(--np-red); border-radius: 0 999px 999px 0;
    transition: background .15s ease, box-shadow .15s ease;
}
.np-search button:hover { background: #a3211b; box-shadow: 0 4px 12px rgba(156,33,27,.24); }

/* 小屏搜索开关（大屏隐藏） */
.np-search-toggle {
    display: none; flex: 0 0 auto; align-items: center; justify-content: center;
    width: 38px; height: 38px; color: #4b453a; cursor: pointer;
    background: #f7f4ed; border: 1px solid #ece5d6; border-radius: 999px;
    transition: color .15s ease, background .15s ease;
}
.np-search-toggle:hover { color: var(--np-red); background: rgba(156,33,27,.07); }
.np-search-toggle svg { width: 17px; height: 17px; }
.np-search-toggle .np-ico-close { display: none; }
.np-search-toggle[aria-expanded="true"] .np-ico-search { display: none; }
.np-search-toggle[aria-expanded="true"] .np-ico-close { display: block; }

/* 键盘可达性 */
.np-nav a:focus-visible, .np-search-toggle:focus-visible,
.np-search input:focus-visible, .np-search button:focus-visible {
    outline: 2px solid var(--np-blue); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .np-nav a, .np-search input, .np-search button, .np-search-toggle { transition: none; }
}

/* 宽屏：报头适度放大，撑住大屏观感 */
@media (min-width: 1280px) {
    .np-header-inner { gap: 12px 26px; min-height: 80px; }
    .np-logo { padding-right: 26px; }
    .np-logo::after { height: 42px; }
    .np-logo img { height: 50px; }
    .np-nameplate { gap: 5px; padding-left: 26px; }
    .np-nameplate-main { font-size: 32px; letter-spacing: 4px; }
    .np-nameplate-sub { font-size: 12px; letter-spacing: 7px; }
    .np-nav a { padding: 8px 22px; font-size: 15px; }
    .np-search input[type=text], .np-search input[type=search] { width: 244px; padding: 10px 16px 10px 36px; font-size: 13.5px; }
    .np-search button { padding: 10px 24px; font-size: 14px; }
}

/* 中等桌面：收紧尺寸，保证单行不换行 */
@media (max-width: 1024px) {
    .np-logo img { height: 40px; }
    .np-nameplate-main { font-size: 24px; letter-spacing: 2px; }
    .np-nameplate-sub { font-size: 11px; letter-spacing: 4px; }
    .np-nav a { padding: 6px 14px; font-size: 13.5px; }
    .np-search input[type=text], .np-search input[type=search] { width: 168px; }
    .np-search button { padding: 8px 15px; }
}

/* ---------- 日期筛选栏 ---------- */
.np-datebar {
    background: #ffffff;
    border-bottom: 1px solid var(--np-rule);
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.np-datebar-inner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 12px 0 10px;
}
.np-today { display: flex; align-items: baseline; gap: 10px; font-family: var(--np-serif); }
.np-today-date { font-size: 24px; font-weight: 700; color: var(--np-red); letter-spacing: 1px; }
.np-today-week { font-size: 14px; color: var(--np-ink-2); font-weight: 700; }
.np-today-issue { font-size: 12px; color: var(--np-ink-3); }
.np-datenav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.np-datenav a, .np-datenav span {
    display: inline-block; padding: 5px 12px; font-size: 13px;
    border: 1px solid var(--np-rule); background: #fff; color: var(--np-ink-2); border-radius: 3px;
}
.np-datenav a:hover { border-color: var(--np-red); color: var(--np-red); }
.np-datenav span.disabled { opacity: .45; cursor: not-allowed; }
.np-datenav input[type=date] {
    padding: 5px 10px; border: 1px solid var(--np-rule); border-radius: 3px;
    font-size: 13px; background: #fff; color: var(--np-ink); font-family: var(--np-sans);
}
.np-datechips {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px;
    scrollbar-width: thin;
}
.np-chip {
    flex: 0 0 auto; padding: 5px 12px; font-size: 13px; border: 1px solid var(--np-rule);
    background: #fff; color: var(--np-ink-2); border-radius: 3px; white-space: nowrap;
    font-family: var(--np-serif);
}
.np-chip small { color: var(--np-ink-3); margin-left: 4px; font-family: var(--np-sans); }
.np-chip:hover { border-color: var(--np-red); color: var(--np-red); }
.np-chip.active { background: var(--np-red); border-color: var(--np-red); color: #fff; }
.np-chip.active small { color: rgba(255,255,255,.75); }

/* ---------- 版面切换（同一天多个版） ---------- */
.np-pages { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 0; }
.np-page-tab {
    padding: 5px 14px; font-size: 13px; border: 1px solid var(--np-rule);
    background: #fff; color: var(--np-ink-2); border-radius: 3px; font-family: var(--np-serif);
}
.np-page-tab:hover { border-color: var(--np-red); color: var(--np-red); }
.np-page-tab.active { background: var(--np-ink); border-color: var(--np-ink); color: #fff; }

/* ---------- 报纸整版缩略图 ---------- */
.np-stage { padding: 24px 16px 10px; }
.paper-thumb {
    width: 100%; max-width: 960px; margin: 0 auto;
    filter: drop-shadow(0 16px 32px rgba(0,0,0,.22));
}
.paper-sheet {
    background: linear-gradient(180deg, #fdfcf8 0%, #f7f3ea 100%);
    border: 1px solid #cbc3b2;
    padding: 16px 18px 14px;
    position: relative;
}
.paper-sheet::after {
    content: ''; position: absolute; inset: 6px; border: 1px solid rgba(0,0,0,.07); pointer-events: none;
}

/* 报眉：版名 + 版次 */
.ps-top {
    display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
    gap: 3px 12px;
    border-bottom: 1px solid var(--np-rule);
    padding-bottom: 6px; margin-bottom: 12px;
    font-family: var(--np-serif); font-size: 12px; color: var(--np-ink-3); letter-spacing: 1.5px;
}
.ps-top-left { color: var(--np-ink-2); font-weight: 700; }

/* 报头：左报眼（期号） + 报名 + 右报眼（日期） */
.ps-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 4px 0 12px;
}
.ps-issue {
    justify-self: start;
    border: 1px solid var(--np-rule);
    background: #fffdf8;
    padding: 7px 14px;
    font-family: var(--np-serif); font-size: 14px; font-weight: 700;
    color: var(--np-ink); letter-spacing: 2px; text-align: center; line-height: 1.35;
}
.ps-issue::before {
    content: '期号'; display: block; font-size: 11px; font-weight: 400;
    letter-spacing: 3px; color: var(--np-ink-3);
}
.ps-name {
    font-family: var(--np-brush); font-size: 54px; font-weight: 700;
    color: var(--np-red); text-align: center; line-height: 1.02;
    letter-spacing: 4px; white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.ps-slogan {
    text-align: center; font-family: var(--np-serif);
    font-size: 13px; font-weight: 700; color: var(--np-ink-2);
    letter-spacing: 8px; margin-top: 5px; line-height: 1.2;
}
.ps-mast-right {
    justify-self: end;
    border: 1px solid var(--np-rule);
    background: #fffdf8;
    padding: 7px 14px;
    text-align: center; font-family: var(--np-serif); line-height: 1.5;
}
.ps-mast-date { font-size: 14px; font-weight: 700; color: var(--np-ink); }
.ps-mast-week { font-size: 12px; color: var(--np-ink-2); }
.ps-mast-page { font-size: 11px; color: var(--np-ink-3); }

/* 报头下的经典双细线 */
.ps-rule-double {
    border-top: 3px solid var(--np-rule-strong);
    border-bottom: 1px solid var(--np-rule-strong);
    height: 4px; margin-bottom: 14px;
}

/* 报头（小屏 <700px）：三栏改为纵向居中，报头名允许换行 */
@media (max-width: 699px) {
    .paper-sheet { padding: 12px 12px 12px; }
    .ps-masthead {
        display: flex; flex-direction: column; align-items: center;
        gap: 6px; padding: 6px 0 10px; text-align: center;
    }
    .ps-issue, .ps-mast-right { border: none; background: none; padding: 0; }
    .ps-issue::before { display: none; }
    .ps-issue { font-size: 12px; letter-spacing: 1px; }
    .ps-name {
        font-size: 30px; letter-spacing: 2px; line-height: 1.15;
        white-space: normal; overflow-wrap: break-word;
    }
    .ps-slogan { font-size: 12px; letter-spacing: 4px; margin-top: 3px; }
    .ps-mast-right { line-height: 1.5; }
    .ps-mast-date { font-size: 13px; }
    .ps-mast-week { font-size: 12px; }
    .ps-mast-page { font-size: 11px; }
}

/* 版面正文（移动端：纵向堆叠） */
.ps-body { display: flex; flex-direction: column; }
.ps-block {
    display: block; padding: 14px 0;
    border-bottom: 1px dashed var(--np-rule);
    transition: background .15s ease;
}
.ps-block:last-child { border-bottom: none; }
.ps-block:hover { background: rgba(156,33,27,.05); }
.ps-kicker {
    display: inline-block; font-family: var(--np-serif); font-size: 12px; font-weight: 700;
    color: var(--np-red); letter-spacing: 1px; margin-bottom: 5px;
}
.ps-kicker::before {
    content: ''; display: inline-block; width: 7px; height: 7px;
    background: var(--np-red); margin-right: 6px; vertical-align: 1px;
}
.ps-title { font-family: var(--np-serif); font-weight: 700; line-height: 1.3; color: var(--np-ink); }
.ps-block:hover .ps-title { color: var(--np-red); }
.ps-sum {
    font-family: var(--np-serif); color: var(--np-ink-2); line-height: 1.72; text-align: justify;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-fig { margin: 0; }
.ps-fig img {
    width: 100%; height: 100%; object-fit: cover; background: #e6dfd1;
    border: 1px solid rgba(0,0,0,.14);
    filter: grayscale(8%) contrast(1.02);
}
.ps-fig figcaption { font-size: 11.5px; color: var(--np-ink-3); margin-top: 4px; line-height: 1.45; }
.ps-empty {
    border: 1px dashed var(--np-rule); background: rgba(0,0,0,.015);
    color: var(--np-ink-3); display: flex; align-items: center; justify-content: center;
    font-family: var(--np-serif); font-size: 12px; letter-spacing: 1px;
    min-height: 100px;
}

/* 移动端字号 */
.ps-title { font-size: 18px; }
.ps-sum { font-size: 14px; }
.ps-b-s3 .ps-title { font-size: 22px; }
.ps-b-s2 .ps-title { font-size: 19px; }
.ps-b-s1 .ps-title { font-size: 17px; }
.ps-sum { -webkit-line-clamp: 4; }
.ps-b-s3 .ps-lead { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.ps-b-s3 .ps-fig img { aspect-ratio: 16 / 9; }
.ps-b-s2 .ps-fig { margin-top: 10px; }
.ps-b-s2 .ps-fig img { aspect-ratio: 16 / 9; }
.ps-b-s1 .ps-fig { margin-top: 10px; }
.ps-b-s1 .ps-fig img { aspect-ratio: 4 / 3; }
.ps-b-s1 .ps-title { margin-top: 10px; }

/* 报尾 */
.ps-foot {
    border-top: 1px solid var(--np-rule); margin-top: 14px; padding-top: 7px;
    display: flex; justify-content: space-between; font-size: 11px; color: var(--np-ink-3);
}

/* 桌面端：真正的"整版缩略图"，随容器等比缩放，分栏竖线对齐 */
@media (min-width: 700px) {
    .paper-thumb { container-type: inline-size; }
    .paper-sheet { padding: 1.6cqw 1.8cqw 1.4cqw; }
    .paper-sheet::after { inset: .6cqw; }
    .ps-top { font-size: max(10px, 1.05cqw); padding-bottom: .55cqw; margin-bottom: 1.2cqw; letter-spacing: .15cqw; }
    .ps-masthead { padding: .4cqw 0 1.2cqw; gap: 1.6cqw; }
    .ps-issue { font-size: max(12px, 1.35cqw); padding: .7cqw 1.2cqw; letter-spacing: .16cqw; }
    .ps-issue::before { font-size: max(10px, 1.05cqw); }
    .ps-name { font-size: max(34px, 6cqw); letter-spacing: .42cqw; }
    .ps-slogan { font-size: max(12px, 1.5cqw); letter-spacing: .7cqw; margin-top: .45cqw; }
    .ps-mast-right { padding: .7cqw 1.2cqw; }
    .ps-mast-date { font-size: max(12px, 1.55cqw); }
    .ps-mast-week { font-size: max(11px, 1.3cqw); }
    .ps-mast-page { font-size: max(10px, 1.15cqw); }
    .ps-rule-double { height: .45cqw; margin-bottom: 1.5cqw; }

    .ps-body {
        display: grid; grid-template-columns: repeat(6, 1fr);
        column-gap: 0; row-gap: 0;
        padding-top: .2cqw;
        border-bottom: 1px solid var(--np-rule);
    }
    .ps-block {
        display: flex; flex-direction: column;
        border-bottom: none; padding: .9cqw 1.2cqw;
        border-left: 1px solid var(--np-rule);
    }
    .ps-block.ps-rowstart { border-left: none; padding-left: 0; }
    .ps-block.ps-rowend { padding-right: 0; }
    .ps-b-s1 { grid-column: span 2; }
    .ps-b-s2 { grid-column: span 4; }
    .ps-b-s3 { grid-column: span 6; }

    .ps-kicker { font-size: max(11px, 1.1cqw); margin-bottom: .45cqw; flex: 0 0 auto; }
    .ps-title {
        font-size: max(15px, 1.95cqw); flex: 0 0 auto;
        display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
    }
    .ps-b-s1 .ps-title { font-size: max(15px, 1.8cqw); -webkit-line-clamp: 2; }
    .ps-b-s2 .ps-title { font-size: max(18px, 2.25cqw); -webkit-line-clamp: 2; }
    .ps-b-s3 .ps-title { font-size: max(26px, 3.4cqw); -webkit-line-clamp: 2; }
    .ps-sum {
        font-size: max(11px, 1.25cqw); margin-top: .5cqw; flex: 0 0 auto;
        display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
    }
    .ps-b-s1 .ps-sum { -webkit-line-clamp: 3; }
    .ps-b-s2 .ps-sum { -webkit-line-clamp: 2; }
    .ps-b-s3 .ps-sum { -webkit-line-clamp: 6; }
    .ps-fig img { border-width: 1px; }
    .ps-fig figcaption { font-size: max(10px, 1.05cqw); margin-top: .3cqw; }

    /* 图片撑满本栏剩余高度，消除块内空隙 */
    .ps-fig {
        flex: 1 1 auto; min-height: 0;
        display: flex; flex-direction: column;
        margin: .6cqw 0 0;
    }
    .ps-fig img { width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; }
    .ps-fig figcaption { flex: 0 0 auto; }
    .ps-b-s1 .ps-fig img { aspect-ratio: 3 / 2; }
    .ps-b-s2 .ps-fig img { aspect-ratio: 2 / 1; }

    /* 头条：图片定高，摘要填满图片右侧、底边与图片对齐 */
    .ps-b-s3 .ps-lead {
        position: relative; display: block;
        margin-top: .8cqw;
    }
    .ps-b-s3 .ps-fig { position: relative; width: 52%; flex: 0 0 auto; display: block; margin: 0; }
    .ps-b-s3 .ps-fig img { aspect-ratio: 16 / 9; height: auto; width: 100%; flex: none; }
    .ps-b-s3 .ps-fig figcaption {
        position: absolute; left: 0; right: 0; bottom: 0;
        margin: 0; padding: 1.5cqw .9cqw .5cqw;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.68) 100%);
        color: #fff; font-size: max(10px, 1.05cqw); line-height: 1.4;
    }
    .ps-b-s3 .ps-sum {
        position: absolute; top: 0; right: 0; width: 45.5%;
        height: 100%; overflow: hidden;
        margin: 0; padding: 0;
        display: block;
        font-size: max(11px, 1.3cqw); line-height: 1.82; text-align: justify;
    }

    /* 第 5 篇（第三行中栏）：顶部图 + 标题 + 短摘要 + 底部图 */
    .ps-slot-5 .ps-fig { flex: 0 0 auto; }
    .ps-slot-5 .ps-title {
        flex: 0 0 auto;
        display: block; overflow: visible;
        -webkit-line-clamp: initial;
    }
    .ps-slot-5 .ps-sum {
        flex: 0 0 auto;
        display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
        -webkit-line-clamp: 2;
        max-height: 3.5em;
        margin-top: .5cqw;
    }
    .ps-slot-5 .ps-fig-extra {
        flex: 0 0 auto;
        margin-top: auto;
        padding-top: .6cqw;
    }

    .ps-b-s1 .ps-title { margin-top: .5cqw; }

    .ps-block > .ps-empty { flex: 1 1 auto; width: 100%; }
    .ps-empty { min-height: 10cqw; font-size: max(10px, 1.05cqw); }
}

/* ---------- 本版报道（导读侧栏） ---------- */
.np-report {
    background: var(--np-page);
    border: 1px solid var(--np-rule);
    max-width: 960px; margin: 22px auto 0;
    padding: 0; overflow: hidden;
}
.np-report-head {
    background: var(--np-ink);
    padding: 13px 18px;
    display: flex; align-items: baseline; gap: 12px;
}
.np-report-head h2 {
    font-family: var(--np-serif); font-size: 18px; letter-spacing: 3px;
    color: #fff; font-weight: 700;
}
.np-report-head h2::before { content: ''; display: inline-block; width: 9px; height: 9px; background: #d14a3f; margin-right: 8px; }
.np-report-head span { font-size: 11px; color: rgba(255,255,255,.6); }
.np-report-list { list-style: none; padding: 6px 0; }
.np-report-list li a,
.np-report-list li.nr-empty > span {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px;
    border-bottom: 1px dotted var(--np-rule); transition: all .15s;
}
.np-report-list li:last-child a,
.np-report-list li:last-child.nr-empty > span { border-bottom: none; }
.np-report-list li a:hover { background: rgba(156,33,27,.06); }
.np-report-list .nr-num {
    font-family: var(--np-serif); font-size: 14px; color: var(--np-red);
    font-weight: 700; flex: 0 0 auto; line-height: 1.55; min-width: 20px;
}
.np-report-list .nr-title {
    font-family: var(--np-serif); font-size: 15px; line-height: 1.55; color: var(--np-ink); flex: 1;
}
.np-report-list li a:hover .nr-title { color: var(--np-red); }
.np-report-list .nr-kicker {
    font-size: 11px; color: var(--np-ink-3); background: #efe9dc;
    padding: 1px 6px; line-height: 1.5; flex: 0 0 auto; margin-top: 1px;
}
.np-report-list li.nr-empty > span { color: var(--np-ink-3); }
.np-report-list li.nr-empty .nr-title { color: var(--np-ink-3); font-size: 14px; }

/* 桌面端：报纸在左，导读在右 */
@media (min-width: 1180px) {
    .np-stage {
        max-width: 1280px;
        padding: 24px 20px 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 26px;
        align-items: start;
    }
    .np-stage .paper-thumb { max-width: none; margin: 0; }
    .np-stage .np-report {
        margin: 0; position: sticky; top: 86px;
        max-height: calc(100vh - 106px); overflow-y: auto;
    }
    .np-stage > .np-empty {
        grid-column: 1 / -1; justify-self: center;
        width: 100%; max-width: 960px; margin: 24px auto;
    }
    .np-report-list li a,
    .np-report-list li.nr-empty > span { padding: 11px 16px; }
}

/* ---------- 往期回顾 ---------- */
.np-archive { max-width: 960px; margin: 0 auto; padding: 28px 0 0; }
.np-archive h3 { font-family: var(--np-serif); font-size: 17px; border-left: 4px solid var(--np-red); padding-left: 10px; margin-bottom: 12px; }
.np-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.np-archive-item {
    background: var(--np-page); border: 1px solid var(--np-rule); padding: 12px 14px; transition: all .2s;
}
.np-archive-item:hover { border-color: var(--np-red); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.np-archive-date { font-family: var(--np-serif); font-size: 16px; font-weight: 700; }
.np-archive-week { font-size: 12px; color: var(--np-ink-3); margin-top: 2px; }
.np-archive-title { font-size: 13px; color: var(--np-ink-2); margin-top: 6px; }

/* ---------- 搜索结果 ---------- */
.np-search-box { max-width: 960px; margin: 0 auto; padding: 26px 0 4px; }
.np-search-head { font-family: var(--np-serif); font-size: 18px; margin-bottom: 14px; border-bottom: 2px solid var(--np-rule-strong); padding-bottom: 8px; }
.np-search-head em { color: var(--np-red); font-style: normal; }
.np-result { display: block; background: var(--np-page); border: 1px solid var(--np-rule); padding: 14px 18px; margin-bottom: 10px; transition: all .2s; }
.np-result:hover { border-color: var(--np-red); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.np-result-title { font-family: var(--np-serif); font-size: 17px; font-weight: 700; line-height: 1.45; }
.np-result:hover .np-result-title { color: var(--np-red); }
.np-result-sum { font-size: 13.5px; color: var(--np-ink-2); margin-top: 6px; line-height: 1.7; }
.np-result-sum mark { background: #ffe6a8; color: var(--np-ink); padding: 0 2px; }
.np-result-meta { font-size: 12px; color: var(--np-ink-3); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 空状态 ---------- */
.np-empty { max-width: 960px; margin: 40px auto; background: var(--np-page); border: 1px solid var(--np-rule); padding: 48px 24px; text-align: center; }
.np-empty h3 { font-family: var(--np-serif); font-size: 20px; margin-bottom: 10px; }
.np-empty p { color: var(--np-ink-2); font-size: 14px; }
.np-empty a { color: var(--np-red); text-decoration: underline; }

/* ---------- 详情页 ---------- */
.np-article { max-width: 960px; margin: 0 auto; padding: 22px 0 10px; }
.np-crumb { font-size: 12.5px; color: var(--np-ink-3); margin-bottom: 14px; }
.np-crumb a { color: var(--np-ink-2); }
.np-crumb a:hover { color: var(--np-red); }
.np-art-paper {
    background: var(--np-page); border: 1px solid var(--np-rule); padding: 30px 34px 34px;
    box-shadow: 0 6px 22px rgba(0,0,0,.07);
}
.np-art-head { text-align: center; border-bottom: 2px solid var(--np-rule-strong); padding-bottom: 16px; margin-bottom: 18px; }
.np-art-kicker { display: inline-block; background: var(--np-blue); color: #fff; font-size: 12px; padding: 2px 10px; letter-spacing: 2px; font-family: var(--np-serif); margin-bottom: 12px; }
.np-art-title { font-family: var(--np-serif); font-size: 32px; font-weight: 700; line-height: 1.35; letter-spacing: 1px; }
.np-art-sub { font-family: var(--np-serif); font-size: 15px; color: var(--np-ink-2); margin-top: 8px; }
.np-art-meta { margin-top: 14px; font-size: 13px; color: var(--np-ink-3); display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.np-art-cover { margin: 0 0 18px; }
.np-art-cover img { width: 100%; border: 1px solid rgba(0,0,0,.12); }
.np-art-cover figcaption { font-size: 12.5px; color: var(--np-ink-3); margin-top: 6px; text-align: center; }
.np-art-content { font-family: var(--np-serif); font-size: 17px; line-height: 1.95; color: var(--np-ink); }
.np-art-content p { margin-bottom: 1.05em; text-align: justify; }
.np-art-content img { max-width: 100%; height: auto; margin: 12px auto; border: 1px solid rgba(0,0,0,.1); }
.np-art-content h2, .np-art-content h3 { font-size: 20px; margin: 20px 0 10px; }
.np-art-content blockquote { border-left: 3px solid var(--np-red); padding-left: 14px; color: var(--np-ink-2); margin: 14px 0; }
.np-art-content ul, .np-art-content ol { padding-left: 26px; margin-bottom: 1em; }
.np-art-content a { color: var(--np-blue); text-decoration: underline; }
.np-art-tags { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--np-rule); font-size: 13px; color: var(--np-ink-3); }
.np-art-tags a { display: inline-block; border: 1px solid var(--np-rule); padding: 2px 10px; margin: 0 6px 6px 0; color: var(--np-ink-2); }
.np-art-tags a:hover { border-color: var(--np-red); color: var(--np-red); }

.np-art-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; font-size: 13.5px; }
.np-art-nav a { color: var(--np-ink-2); max-width: 46%; }
.np-art-nav a:hover { color: var(--np-red); }

/* 详情页侧栏：本版其他报道 */
.np-side-card { background: var(--np-page); border: 1px solid var(--np-rule); padding: 16px 18px; margin-bottom: 16px; }
.np-side-card h3 { font-family: var(--np-serif); font-size: 16px; border-bottom: 2px solid var(--np-rule-strong); padding-bottom: 8px; margin-bottom: 10px; }
.np-side-list { list-style: none; }
.np-side-list li { border-bottom: 1px dotted var(--np-rule); }
.np-side-list li:last-child { border-bottom: none; }
.np-side-list a { display: flex; gap: 8px; padding: 8px 2px; }
.np-side-list a:hover { background: rgba(156,33,27,.05); }
.np-side-num { font-family: var(--np-serif); color: var(--np-red); font-size: 13px; font-weight: 700; }
.np-side-title { font-family: var(--np-serif); font-size: 14.5px; line-height: 1.5; }
.np-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .np-layout { grid-template-columns: 1fr 320px; align-items: start; } }

/* ---------- 页脚（共用） ---------- */
.np-footer {
    background: #17150f; color: #a0998b;
    margin-top: 48px; padding: 36px 0 32px; font-size: 13px;
}
.np-footer-inner {
    display: flex; flex-wrap: wrap; gap: 24px 48px;
    align-items: flex-start; justify-content: space-between;
}
.np-footer-brand { min-width: 220px; }
.np-footer-name {
    font-family: var(--np-brush); font-size: 21px; color: #f4f0e5;
    letter-spacing: 1px; line-height: 1.2;
}
.np-footer-slogan { font-family: var(--np-serif); font-size: 12px; color: #b7ae9e; letter-spacing: 3px; margin-top: 3px; }
.np-footer-copy { font-size: 12px; color: #7c7467; margin-top: 12px; }
.np-footer-nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.np-footer-nav a { color: #cfc8ba; }
.np-footer-nav a:hover { color: #fff; }
.np-footer-langs { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.np-footer-langs a { color: #cfc8ba; }
.np-footer-langs a:hover { color: #fff; }

/* ---------- 响应式：平板 / 手机 ---------- */
@media (max-width: 860px) {
    .np-wrap { padding: 0 14px; }

    /* 页头：紧凑两行（首行标识+搜索开关，次行导航） */
    .np-header { position: static; }
    .np-header-inner { gap: 8px 12px; min-height: 0; padding: 8px 0 10px; }
    .np-logo { padding-right: 12px; }
    .np-logo::after { height: 28px; }
    .np-logo img { height: 36px; }
    .np-nameplate { gap: 3px; padding-left: 12px; }
    .np-nameplate-main { font-size: 21px; letter-spacing: 1.5px; }
    .np-nameplate-sub { font-size: 10px; letter-spacing: 3px; }
    .np-nameplate-sub::before { width: 14px; margin-right: 8px; }

    /* 导航独占一行，条目过多时横向滑动 */
    .np-nav {
        order: 3; flex: 1 0 100%; gap: 4px; padding: 8px 0 0;
        background: none; border: none; border-top: 1px solid #f0e9dc; border-radius: 0;
        overflow-x: auto; overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .np-nav::-webkit-scrollbar { display: none; }
    .np-nav a { padding: 6px 12px; font-size: 13.5px; border-radius: 7px; }
    .np-nav a.active { color: var(--np-red); background: rgba(156,33,27,.08); box-shadow: none; }

    /* 搜索：有 JS 时折叠为图标，点击展开整行；无 JS 时始终整行显示 */
    .np-js .np-search-toggle { display: inline-flex; order: 2; }
    .np-js .np-search { order: 4; flex: 1 0 100%; display: none; }
    .np-js .np-search.is-open { display: flex; }
    .np-search { order: 4; flex: 1 0 100%; }
    .np-search input[type=text], .np-search input[type=search] { flex: 1 1 auto; width: auto; min-width: 0; }
    .np-search button { flex: 0 0 auto; }

    /* 首页日期栏 */
    .np-today-date { font-size: 21px; }
    .np-datenav { margin-left: 0; width: 100%; }

    /* 详情页正文 */
    .np-crumb { font-size: 12px; margin-bottom: 10px; }
    .np-art-paper { padding: 20px 16px 24px; }
    .np-art-title { font-size: 24px; letter-spacing: 0; }
    .np-art-meta { gap: 6px 12px; font-size: 12.5px; }
    .np-art-content { font-size: 16px; }
    .np-art-nav { flex-direction: column; gap: 10px; }
    .np-art-nav a { max-width: 100%; }
    .np-art-nav > div:last-child { text-align: left !important; }

    /* 页脚：竖排 */
    .np-footer { margin-top: 32px; padding: 26px 0 22px; font-size: 12.5px; }
    .np-footer-inner { flex-direction: column; gap: 18px; }
    .np-footer-brand { min-width: 0; }
}

/* ===== 微信分享缩略图兜底图：保留尺寸（微信要求 ≥300px）但移出可视区 ===== */
.wx-share-thumb {
    position: absolute; left: -99999px; top: 0;
    width: 337px; height: 332px;
    opacity: 0; pointer-events: none; border: 0;
}

@media (max-width: 560px) {
    .np-header-inner { gap: 6px 10px; padding: 7px 0 9px; }
    .np-logo { padding-right: 10px; }
    .np-logo img { height: 32px; }
    .np-nameplate { padding-left: 10px; }
    .np-nameplate-main { font-size: 18px; letter-spacing: 1px; }
    .np-nameplate-sub { font-size: 9.5px; letter-spacing: 2.5px; }
    .np-nav { padding-top: 6px; }
    .np-nav a { font-size: 13px; padding: 5px 10px; }
    .np-search-toggle { width: 34px; height: 34px; }
    .np-search input[type=text], .np-search input[type=search] { padding: 8px 12px 8px 33px; font-size: 12.5px; }
    .np-search button { padding: 8px 14px; font-size: 12.5px; }

    .np-art-paper { padding: 16px 12px 20px; border-left: 0; border-right: 0; }
    .np-art-kicker { font-size: 11px; padding: 2px 8px; }
    .np-art-title { font-size: 21px; line-height: 1.4; }
    .np-art-content { font-size: 15.5px; }

    .np-footer { font-size: 12px; padding: 20px 0 18px; }
}

/* ============================================================
   默认配图中的竖图（9:16）放宽比例，尽量保留完整画面
   注意：放在文件末尾，用于覆盖上面 @media 里的 .ps-fig img 比例
   ============================================================ */
.ps-fig.is-portrait img { aspect-ratio: 3 / 4; }
.ps-b-s2 .ps-fig.is-portrait img { aspect-ratio: 4 / 3; }
.ps-b-s3 .ps-fig.is-portrait img { aspect-ratio: 1 / 1; }
@media (min-width: 700px) {
    /* 第 5 篇两图：先适配宽度，高度随宽度同比缩放（含竖图） */
    .ps-slot-5 .ps-fig img,
    .ps-slot-5 .ps-fig.is-portrait img {
        flex: none; height: auto; aspect-ratio: auto;
    }
}
/* 后台预览用的竖图缩略图 */
.np-defimg-portrait { height: 90px; width: auto; }

/* ============================================================
   详情页「版面缩略图」独立区块（放在文章正文板块之上，不与正文叠加）
   iframe 以 960px 原宽渲染与首页完全相同的版面，再用 transform 等比缩到 30%，
   因此字号、间距、分栏全部由同一套 cqw 计算得出，缩略图与首页严丝合缝。
   ============================================================ */
.np-edition-mini {
    --mini-scale: .3;   /* 缩放比例：0.3 = 保留原版面的 30%（改这一处即可调整） */
    --mini-w: 960px;    /* 版面原始渲染宽度，与首页 .paper-thumb 上限一致 */
    display: block;
    margin: 0 0 16px;
    padding: 14px 12px 12px;
    background: var(--np-page);
    border: 1px solid var(--np-rule);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.np-edition-mini:hover { border-color: var(--np-red); box-shadow: 0 6px 18px rgba(28,24,16,.10); }
.np-edition-mini:focus-visible { outline: 2px solid var(--np-blue); outline-offset: 3px; }

/* 卡片标题栏：与右侧「本版报道」等卡片同款（衬线标题 + 双细线） */
.np-edition-mini-bar {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    padding-bottom: 8px; margin-bottom: 12px;
    border-bottom: 2px solid var(--np-rule-strong);
    font-family: var(--np-serif); font-size: 15px; color: var(--np-ink);
}
.np-edition-mini-label { font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.np-edition-mini-link {
    color: var(--np-red); font-size: 12px; letter-spacing: 0;
    white-space: nowrap; align-self: flex-end;
}
.np-edition-mini:hover .np-edition-mini-link { text-decoration: underline; }

/* 版面本体：固定尺寸的取景框，内部 iframe 等比缩放后完整显示一整版 */
.np-edition-mini-frame {
    /* 必须是 block：span 默认 inline，height / overflow 不生效，
       外框高度会塌陷成 0，绝对定位的 iframe 就会溢出并盖在正文上 */
    display: block;
    position: relative;
    width: calc(var(--mini-w, 960px) * var(--mini-scale, .3));
    height: 430px;      /* JS 会用「真实高度 × 比例」覆盖；此值为无 JS 时的兜底 */
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--np-rule);
}
.np-edition-mini-frame iframe {
    position: absolute; top: 0; left: 0;
    display: block;
    /* 宽度必须 ≥700px：内页的报纸分栏排版在 @media (min-width:700px) 里，
       视口一旦小于 700px 就会退化成「上下堆叠」的移动端版式。
       min-width 作为兜底，保证即使 width 失效也不会误判成小屏。 */
    width: var(--mini-w, 960px);
    min-width: 720px;
    height: 1430px;     /* JS 会用版面真实高度覆盖 */
    border: 0;
    transform: scale(var(--mini-scale, .3));
    transform-origin: top left;
    pointer-events: none;   /* 点击穿透到外层链接 */
}
.np-edition-mini-cap {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-family: var(--np-serif); font-size: 11.5px; color: var(--np-ink-3);
    letter-spacing: .5px;
}

/* 窄屏（侧栏落到正文下方）时略缩小，保证不溢出 */
@media (max-width: 560px) {
    .np-edition-mini { --mini-scale: .26; padding: 12px 10px 10px; }
    .np-edition-mini-bar { font-size: 14px; }
}

/* ---------- 嵌入模式（/?embed=1）：只输出报纸版面本身 ---------- */
body.np-embed { background: #fff; overflow: hidden; }   /* 需与 body.np-body 同权重：写在文件末尾即可覆盖 */
.np-embed .np-wrap { max-width: none; padding: 0; }
.np-embed .np-stage { padding: 0; }
.np-embed .paper-thumb {
    width: 960px;
    max-width: 960px;
    margin: 0;
    filter: none;
}
/* 缩略图不可点：避免点击后 iframe 内部跳走 */
.np-embed .ps-block { pointer-events: none; cursor: default; }
.np-embed .ps-block:hover { background: none; }
/* 本文所在位置高亮 */
.np-embed .ps-block.is-current {
    background: rgba(156,33,27,.09);
    box-shadow: inset 0 0 0 1.5px rgba(156,33,27,.5);
}
.np-embed .ps-block.is-current .ps-title { color: var(--np-red); }
