@charset "utf-8";

/* PRISM · 杂志画报风 —— 头条大卡跨列 + 衬线标题 + 细横线分隔 */

:root {
    --tone: #1f3a8a;
    --tone-w: #eef2fd;
    --sheet: #ffffff;
    --ash: #f4f5f7;
    --hair: #e2e4e9;
    --ink: #16181d;
    --gray: #5c6472;
    --pale: #9aa1ad;
    --sp: 15px;
}

: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]) { --tone: #0b6b5b; --tone-w: #e7f4f1; }
: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]) { --tone: #9a3412; --tone-w: #fdeee6; }

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

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

@media (min-width: 821px) { body { box-shadow: 0 0 0 1px var(--hair); } }

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; }
.mute { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }

/* 骨架：源码 main → nav → top → foot */
.folio {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "nav" "main" "foot";
    min-height: 100vh;
}
.folio-top { grid-area: top; }
.folio-nav { grid-area: nav; }
.folio-main { grid-area: main; }
.folio-foot { grid-area: foot; }

/* 报头 */
.folio-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px var(--sp) 13px; background: var(--ash);
    border-bottom: 2px solid var(--ink);
}
.top-logo img { height: 34px; width: auto; }
.hunt { flex: 1 1 auto; display: flex; min-width: 0; height: 36px; border: 1px solid var(--hair); }
.hunt-in { flex: 1 1 auto; min-width: 0; padding: 0 10px; font-size: 13px; color: var(--ink); background: var(--ash); border: 0; outline: 0; }
.hunt-in::placeholder { color: var(--pale); }
.hunt-hit { flex: 0 0 auto; padding: 0 16px; font-size: 13px; color: #fff; background: var(--ink); }

/* 栏目条 */
.folio-nav { padding: 9px var(--sp); border-bottom: 1px solid var(--hair); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.folio-nav::-webkit-scrollbar { display: none; }
.nav-tab { display: inline-block; padding: 4px 11px; font-size: 13px; color: var(--gray); }
.nav-tab:hover { color: var(--tone); }
.nav-tab--now { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--tone); }

/* 章节标题：衬线 + 双线 */
.chapter { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 var(--sp); padding: 20px 0 10px; border-bottom: 3px double var(--hair); }
.chapter-t { font-family: Georgia, "Songti SC", "SimSun", serif; font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.chapter-t i { font-style: normal; color: var(--tone); }
.chapter-a { font-size: 12px; color: var(--pale); }
.chapter-a:hover { color: var(--tone); }

/* 版面：首条跨两列 */
.spread { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; padding: 16px var(--sp) 10px; }
@media (min-width: 601px) { .spread { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.piece { min-width: 0; }
.piece-shot { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--ash) url("../img/load.gif") center / 36px 36px no-repeat; }
.piece-img { width: 100%; height: 100%; object-fit: cover; }
.piece-mark { position: absolute; left: 0; top: 0; padding: 2px 7px; font-size: 11px; color: #fff; background: var(--ink); }
.piece-t { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piece-d { display: block; font-size: 11px; color: var(--pale); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 头条：本版第一条自动跨两列，不需要模板判断 */
.spread--lead .piece:first-child { grid-column: span 2; }
.spread--lead .piece:first-child .piece-shot { aspect-ratio: 4 / 3; }
.spread--lead .piece:first-child .piece-t { font-family: Georgia, "Songti SC", serif; font-size: 17px; white-space: normal; }

/* 翻页 */
.turn { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; padding: 18px var(--sp) 22px; }
.turn-n { min-width: 36px; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray); border: 1px solid var(--hair); margin: 0 -1px 0 0; }
.turn-n:hover, .turn-n--on { color: #fff; background: var(--tone); border-color: var(--tone); position: relative; }

/* 详情：上图下字 + 衬线大标题 */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "shot" "meta" "act" "essay"; }
.feature-shot { grid-area: shot; display: flex; gap: 14px; align-items: flex-end; padding: 18px var(--sp) 14px; border-bottom: 3px double var(--hair); }
.lede-plate { flex: 0 0 116px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--ash) url("../img/load.gif") center / 36px 36px no-repeat; }
.lede-plate img { width: 100%; height: 100%; object-fit: cover; }
.lede-word { flex: 1 1 auto; min-width: 0; }
.lede-h1 { font-family: Georgia, "Songti SC", serif; font-size: clamp(19px, 5.6vw, 27px); font-weight: 700; line-height: 1.3; }
.lede-sub { margin-top: 6px; font-size: 12.5px; color: var(--gray); }
.lede-num { display: inline-block; margin-top: 8px; padding: 2px 9px; font-size: 12px; color: #fff; background: var(--tone); }

.feature-meta { grid-area: meta; padding: 12px var(--sp) 0; }
.meta-row { display: flex; gap: 8px; padding: 6px 0; font-size: 12.5px; border-bottom: 1px dotted var(--hair); }
.meta-k { flex: 0 0 42px; color: var(--pale); }
.meta-v { flex: 1 1 auto; min-width: 0; color: var(--gray); }
.meta-v a { color: var(--tone); }

.feature-act { grid-area: act; display: flex; gap: 10px; padding: 14px var(--sp) 0; }
.act-a, .act-b { flex: 1 1 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.act-a { color: #fff; background: var(--tone); }
.act-b { color: var(--tone); border: 1px solid var(--tone); }

.essay { grid-area: essay; padding: 18px var(--sp) 4px; }
.essay-h { font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.essay-p { margin-bottom: 9px; font-size: 13.5px; line-height: 1.95; color: var(--gray); }
.essay-p strong { color: var(--ink); }

/* 索引 */
.index-web { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px var(--sp) 18px; }
.index-a { max-width: 100%; padding: 4px 9px; font-size: 12px; color: var(--gray); background: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index-a:hover { color: var(--tone); background: var(--tone-w); }

/* 报尾 */
.folio-foot { margin-top: 14px; padding: 18px var(--sp) 24px; background: var(--ash); border-top: 2px solid var(--ink); }
.foot-tie { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); font-size: 12px; text-align: center; color: var(--pale); }
.foot-tie b { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ink); }
.foot-tie a { display: inline-block; margin: 2px 7px; color: var(--gray); }
.foot-law { font-size: 11.5px; line-height: 1.85; color: var(--pale); text-align: center; }
.foot-sign { margin-top: 10px; font-size: 11.5px; color: var(--pale); text-align: center; }
.foot-sign a { margin: 0 5px; }
.foot-sign a:hover { color: var(--tone); }
