@charset "utf-8";

/* TABLOID · 报纸风 —— 粗黑标题、3px 粗规则线、正文双栏排版 */

:root {
    --red: #dc2626;
    --red-w: #fdecec;
    --sheet: #ffffff;
    --news: #f4f4f5;
    --rule: #d6d7db;
    --black: #101114;
    --gray6: #55585f;
    --gray4: #93969d;
    --m: 14px;
}

:is([data-v="b" i],[data-v="f" i],[data-v="j" i],[data-v="n" i],[data-v="r" i],[data-v="v" i]) { --red: #1e40af; --red-w: #ebeffb; }
:is([data-v="c" i],[data-v="g" i],[data-v="k" i],[data-v="o" i],[data-v="s" i],[data-v="w" i]) { --red: #166534; --red-w: #e9f4ec; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--news); }

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, Arial, sans-serif;
    font-size: 14px; line-height: 1.62; color: var(--black);
    background: var(--sheet); max-width: 860px; margin: 0 auto;
}

img { display: block; border: 0; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.nix { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }

/* 骨架：源码 body → rail → flag → tail */
.press { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "flag" "rail" "body" "tail"; min-height: 100vh; }
.press-flag { grid-area: flag; }
.press-rail { grid-area: rail; }
.press-body { grid-area: body; }
.press-tail { grid-area: tail; }

/* 报头：上下双粗线 */
.press-flag { display: flex; align-items: center; gap: 12px; padding: 14px var(--m) 11px; background: var(--news); border-top: 4px solid var(--black); border-bottom: 1px solid var(--black); }
.flag-name img { height: 34px; width: auto; }
.dig { flex: 1 1 auto; display: flex; min-width: 0; height: 34px; border: 2px solid var(--black); }
.dig-in { flex: 1 1 auto; min-width: 0; padding: 0 9px; font-size: 13px; color: var(--black); background: transparent; border: 0; outline: 0; }
.dig-in::placeholder { color: var(--gray4); }
.dig-b { flex: 0 0 auto; padding: 0 14px; font-size: 13px; font-weight: 800; color: #fff; background: var(--red); }

.press-rail { padding: 8px var(--m); border-bottom: 3px solid var(--black); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.press-rail::-webkit-scrollbar { display: none; }
.rail-a { display: inline-block; padding: 3px 10px; font-size: 13px; font-weight: 600; color: var(--gray6); }
.rail-a:hover { color: var(--red); }
.rail-a--head { color: #fff; background: var(--black); }

/* 版块规则线 */
.rule { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0 var(--m); padding: 18px 0 6px; border-bottom: 3px solid var(--black); }
.rule-t { font-size: 20px; font-weight: 900; letter-spacing: -.5px; line-height: 1; }
.rule-t em { font-style: normal; color: var(--red); }
.rule-a { font-size: 12px; font-weight: 600; color: var(--gray4); }
.rule-a:hover { color: var(--red); }

/* 版面网格 */
.column-set { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 12px; padding: 14px var(--m) 8px; }
@media (min-width: 601px) { .column-set { grid-template-columns: repeat(5, minmax(0,1fr)); } }

.clip { min-width: 0; }
.clip-pic { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--news) url("../img/load.gif") center / 34px 34px no-repeat; filter: contrast(1.04); }
.clip-img { width: 100%; height: 100%; object-fit: cover; }
.clip-tag { position: absolute; left: 0; bottom: 0; padding: 1px 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--red); }
.clip-t { display: block; margin-top: 6px; padding-top: 5px; font-size: 13px; font-weight: 700; line-height: 1.4; border-top: 1px solid var(--black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-x { display: block; font-size: 11px; color: var(--gray4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 页码 */
.numline { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 16px var(--m) 20px; }
.numline-k { min-width: 34px; height: 32px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--black); border: 2px solid var(--black); }
.numline-k:hover, .numline-k--first { color: #fff; background: var(--red); border-color: var(--red); }

/* 详情：整版头条 */
.story { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: "flag" "facts" "ops" "text"; }
.story-flag { grid-area: flag; padding: 16px var(--m) 12px; border-bottom: 4px double var(--black); }
.story-h1 { font-size: clamp(21px, 6.4vw, 34px); font-weight: 900; letter-spacing: -1px; line-height: 1.16; }
.story-lead { margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--gray6); text-transform: uppercase; letter-spacing: .6px; }
.flag-wrap { display: flex; gap: 13px; margin-top: 12px; }
.flag-pic { flex: 0 0 104px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--news) url("../img/load.gif") center / 32px 32px no-repeat; }
.flag-pic img { width: 100%; height: 100%; object-fit: cover; }
.flag-copy { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.85; color: var(--gray6); }
.flag-score { display: inline-block; margin-top: 8px; padding: 3px 10px; font-size: 13px; font-weight: 900; color: #fff; background: var(--black); }

.story-facts { grid-area: facts; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 14px; padding: 10px var(--m) 0; }
.fx { display: flex; gap: 7px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid var(--rule); }
.fx--wide { grid-column: 1 / -1; }
.fx-k { flex: 0 0 auto; font-weight: 700; color: var(--black); }
.fx-v { flex: 1 1 auto; min-width: 0; color: var(--gray6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx--wide .fx-v { white-space: normal; }
.fx-v a { color: var(--red); }

.story-ops { grid-area: ops; display: flex; gap: 10px; padding: 14px var(--m) 0; }
.op-1, .op-2 { flex: 1 1 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.op-1 { color: #fff; background: var(--red); }
.op-2 { color: var(--black); border: 2px solid var(--black); }

/* 正文：宽屏双栏，报纸质感 */
.story-text { grid-area: text; padding: 16px var(--m) 4px; }
.text-t { margin-bottom: 9px; padding-bottom: 5px; font-size: 16px; font-weight: 900; border-bottom: 3px solid var(--black); }
.text-body { font-size: 13.5px; line-height: 1.92; color: var(--gray6); }
@media (min-width: 601px) { .text-body { columns: 2; column-gap: 24px; column-rule: 1px solid var(--rule); } }
.text-body p { margin-bottom: 10px; break-inside: avoid; }
.text-body strong { color: var(--black); }

/* 索引 */
.dirlist { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px var(--m) 16px; }
.dir-a { max-width: 100%; padding: 3px 8px; font-size: 12px; color: var(--gray6); border: 1px solid var(--rule); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-a:hover { color: #fff; background: var(--black); border-color: var(--black); }

/* 报尾 */
.press-tail { margin-top: 14px; padding: 16px var(--m) 22px; background: var(--news); border-top: 4px solid var(--black); }
.tail-fr { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 12px; text-align: center; color: var(--gray4); }
.tail-fr b { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 900; color: var(--black); }
.tail-fr a { display: inline-block; margin: 2px 7px; color: var(--gray6); }
.tail-fr a:hover { color: var(--red); }
.tail-tx { font-size: 11.5px; line-height: 1.85; color: var(--gray4); text-align: center; }
.tail-cp { margin-top: 10px; font-size: 11.5px; color: var(--gray4); text-align: center; }
.tail-cp a { margin: 0 5px; }
.tail-cp a:hover { color: var(--red); }
