/*
Theme Name: SD N49 黑金杂志·封面故事
Author: SD Network
Description: 黑金杂志风：衬线大标题、金色细线、编号编辑卡片，首页是杂志封面（封面故事 + 侧栏专题 + 编者按）。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-n49
*/

:root {
  --bg: #0d0c0a; --surface: #171410; --surface-2: #1d1913; --ink: #f1e9d8; --muted: #a3977f; --line: #3a3326;
  --accent: #c9a24e; --accent-2: #e0457b; --accent-soft: rgba(201, 162, 78, .14); --on-accent: #15110a;
  --radius: 0px; --wrap: 1280px; --gut: 28px; --scrim: rgba(5, 4, 3, .78);
  --font: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",system-ui,-apple-system,"Segoe UI",sans-serif; --serif: "Songti SC","Noto Serif SC","Source Han Serif SC","STSong","SimSun","Songti TC",serif;
}

/* ==========================================================================
   基础层（结构 / 行为）。变量：--bg --surface --ink --muted --line --accent --accent-2
   --accent-soft --on-accent --radius --wrap --gut --font --scrim
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.sd-no-scroll { overflow: hidden; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.n49-wrap { width: 100%; max-width: var(--wrap, 1240px); margin: 0 auto; padding: 0 var(--gut, 20px); }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }

/* 搜索表单 */
.n49-sf { display: flex; gap: 8px; align-items: stretch; }
.n49-sf input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); -webkit-appearance: none; appearance: none; }
.n49-sf input[type="search"]::placeholder { color: var(--muted); opacity: .85; }
.n49-sf button { flex: 0 0 auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* 搜索面板 / 遮罩 / 抽屉（app.js 以 id 绑定） */
.n49-search { position: fixed; inset: 0; z-index: 200; display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; background: var(--scrim, rgba(0,0,0,.55)); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.n49-search.is-open { opacity: 1; visibility: visible; }
.n49-search__box { width: min(640px, 100%); max-height: 80vh; overflow: auto; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
.n49-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.n49-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.n49-tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.n49-tags a:hover { border-color: var(--accent); color: var(--accent); }
.n49-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0,0,0,.55)); opacity: 0; transition: opacity .25s; }
.n49-overlay.is-open { opacity: 1; }
.n49-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(320px, 86vw); padding: 68px 22px 28px; overflow: auto; background: var(--surface); color: var(--ink); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
.n49-drawer.is-open { transform: none; visibility: visible; }
.n49-drawer__close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: transparent; font-size: 20px; }
.n49-drawer__list { list-style: none; margin: 0; padding: 0; }
.n49-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.n49-drawer__list [aria-current="page"], .n49-drawer__list .current-menu-item > a { color: var(--accent); font-weight: 700; }

/* 面包屑 */
.sd-crumbs { padding: 14px 0 4px; font-size: 13px; color: var(--muted); }
.sd-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.sd-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.sd-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.sd-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.sd-crumbs a:hover { color: var(--accent); }
.sd-crumbs [aria-current="page"] { color: var(--ink); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分页 */
.sd-pagination { margin: 36px 0 8px; }
.sd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sd-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; }
.sd-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.sd-pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sd-pagination .dots { background: none; border-color: transparent; }

/* 播放器 / 提示框 */
.n49-player { min-width: 0; }
.sd-player { background: #000; overflow: hidden; }
.sd-player video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; object-fit: contain; background: #000; }
.sd-embed { aspect-ratio: 9 / 16; max-height: 78vh; background: #000; }
.sd-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.sd-player__fallback { padding: 18px; color: #e5e7eb; font-size: 14px; }
.sd-player__fallback a { text-decoration: underline; }
.sd-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.sd-callout__body { flex: 1 1 200px; }
.sd-callout__title { font-weight: 800; margin-bottom: 4px; }
.sd-callout__desc { color: var(--muted); font-size: 14px; }
.sd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* 通用部件 */
.n49-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.n49-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; }
a.n49-pill { min-height: 44px; }
.n49-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.n49-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); font-weight: 600; }
.n49-btn--fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n49-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.n49-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.n49-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.n49-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n49-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.n49-prose { max-width: 70ch; overflow-wrap: anywhere; }
.n49-prose img { height: auto; }
.n49-faq details { border-bottom: 1px solid var(--line); }
.n49-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.n49-faq details p { color: var(--muted); }
.n49-empty, .n49-notfound { padding: 48px 0; }
.n49-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.n49-notfound__search { max-width: 520px; margin: 22px 0; }
.n49-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.n49-notfound__code { margin: 0; font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: 1; color: var(--accent); }
.n49-notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 10px; }
.n49-notfound__desc { max-width: 34em; color: var(--muted); }
.n49-results { display: grid; gap: 0; }
.n49-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.n49-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.n49-result__body { display: grid; gap: 4px; min-width: 0; }
.n49-result__t { font-weight: 700; overflow-wrap: anywhere; }
.n49-result__m, .n49-result__x { font-size: 13px; color: var(--muted); }
.n49-result:hover .n49-result__t { color: var(--accent); }
.n49-searchbar { max-width: 640px; margin: 4px 0 24px; }
.n49-article { max-width: 860px; }
.n49-pages { margin-top: 24px; }

/* 筛选条：行内滚动，不撑破版面 */
.n49-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.n49-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.n49-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.n49-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.n49-filter__list::-webkit-scrollbar { display: none; }
.n49-filter__list a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; }
.n49-filter__list [aria-current="page"] { color: var(--accent); font-weight: 700; }

/* 选集 */
[data-eps] { position: relative; }
.n49-eps { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; max-height: 440px; overflow: auto; padding: 2px; }
.n49-ep { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px 2px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); line-height: 1.2; }
.n49-ep b { font-weight: 700; }
.n49-ep i { font-style: normal; font-size: 11px; color: var(--muted); }
a.n49-ep:hover { border-color: var(--accent); color: var(--accent); }
.n49-ep.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.n49-ep.is-current i { color: inherit; opacity: .8; }
.n49-ep.is-off { opacity: .45; }
.n49-eps--row { grid-template-columns: minmax(0, 1fr); gap: 0; }
.n49-eps--row .n49-ep { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 8px 12px; border-width: 0 0 1px; border-radius: 0; text-align: left; }
.n49-eps--row .n49-ep b { flex: 0 0 2.6em; }
.n49-eps--row .n49-ep__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n49-eps--row .n49-ep i { flex: 0 0 auto; }

/* 资料表 / 文字块 */
.n49-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; margin: 0; }
.n49-facts__r { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.n49-facts dt { font-size: 12.5px; color: var(--muted); }
.n49-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.n49-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.n49-g { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); }
.n49-g:hover { border-color: var(--accent); color: var(--accent); }
.n49-detail__t, .n49-dhead h1 { font-size: clamp(26px, 4vw, 42px); overflow-wrap: anywhere; }
.n49-detail__meta { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.n49-detail__syn { margin: 16px 0 0; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.n49-h2 { font-size: 20px; margin: 0 0 14px; }
.n49-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.n49-block { margin-top: clamp(36px, 6vw, 68px); }
.n49-block--tight { margin-top: 28px; }
.n49-dhead { padding: 8px 0 22px; }
.n49-ph { padding: 26px 0 20px; }
.n49-ph__k { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.n49-ph__t { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.n49-ph__d { margin: 10px 0 0; color: var(--muted); }
.n49-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 18px; }
.n49-sec__t { font-size: clamp(20px, 2.6vw, 28px); }
.n49-sec__k { flex: 0 0 100%; font-size: 12px; color: var(--muted); }
.n49-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.n49-main { min-width: 0; }
.n49-main > .n49-wrap, .n49-main > section { min-width: 0; }

.n49-grid { display: grid; gap: 34px 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .n49-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .n49-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); } }

.n49-head { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
.n49-head--tri .n49-head__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 72px; }
.n49-brand { justify-self: center; font-weight: 800; font-size: 24px; line-height: 1.2; text-align: center; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n49-brand img { max-height: 44px; width: auto; }
.n49-nav { min-width: 0; }
.n49-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.n49-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; }
.n49-nav__list [aria-current="page"], .n49-nav__list .current-menu-item > a { color: var(--accent); font-weight: 700; }
.n49-tools { display: flex; gap: 6px; justify-self: end; }
.n49-tool { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); }
#sd-menu-open { display: none; }
@media (max-width: 960px) { .n49-head--tri .n49-head__in { display: flex; justify-content: space-between; min-height: 60px; } .n49-nav { display: none; } .n49-brand { order: -1; justify-self: auto; text-align: left; font-size: 20px; max-width: 60vw; } #sd-menu-open { display: inline-flex; align-items: center; } }

.n49-foot { margin-top: clamp(48px, 8vw, 96px); padding: 40px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.n49-foot__mark { margin: 0 0 22px; font-size: clamp(40px, 11vw, 150px); font-weight: 900; line-height: 1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.n49-foot__links { display: flex; flex-wrap: wrap; gap: 0 6px; }
.n49-foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px 0 0; font-size: 14px; }
.n49-foot__menu { display: contents; list-style: none; }
.n49-foot__menu li { display: inline-flex; }
.n49-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.n49-dmag { padding: 14px 0 22px; border-bottom: 1px solid var(--line); }
.n49-dmag .n49-detail__t { font-size: clamp(34px, 7vw, 84px); line-height: 1.08; }
.n49-dmag__deck { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; margin-top: 22px; align-items: start; }
.n49-dmag__fig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.n49-dmag__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 44px; margin-top: 32px; align-items: start; }
.n49-dmag__main { min-width: 0; }
.n49-dmag__main .n49-prose { max-width: none; columns: 2 280px; column-gap: 32px; }
.n49-dmag__side { position: sticky; top: 88px; min-width: 0; }
@media (max-width: 900px) { .n49-dmag__cols { grid-template-columns: minmax(0, 1fr); } .n49-dmag__side { position: static; order: -1; } .n49-dmag__side .sd-player { max-width: 420px; margin-inline: auto; } }
@media (max-width: 560px) { .n49-dmag__deck { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } }

.n49-theatre { display: grid; gap: 28px; }
.n49-theatre__stage { width: 100%; max-width: 440px; margin: 0 auto; min-width: 0; }
.n49-theatre__eps { min-width: 0; }
.n49-theatre__eps .n49-eps { max-height: none; }

@media (max-width: 560px) { :root { --gut: 16px; } .n49-filter__row { gap: 8px; } .sd-crumbs [aria-current="page"] { max-width: 48vw; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ==== 主题皮肤：SD N49 黑金杂志·封面故事 ==== */

body { font-weight: 400; }
h1, h2, h3, .n49-brand, .n49-ed__t, .n49-lead__t, .n49-sec__t, .n49-cover__t, .n49-ph__t { font-family: var(--serif); font-weight: 700; }
a:hover { color: var(--accent); }

/* 表头：导航 | 刊名 | 工具 */
.n49-head { background: rgba(13, 12, 10, .94); border-bottom: 1px solid var(--accent); }
.n49-head--tri .n49-head__in { min-height: 84px; }
.n49-brand { font-size: 28px; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.n49-nav__list a { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.n49-tool { border: 0; border-bottom: 1px solid var(--accent); border-radius: 0; font-size: 13px; letter-spacing: .2em; }
.n49-search__box, .n49-drawer { border-color: var(--accent); }
.n49-sf input[type="search"] { background: transparent; border-color: var(--line); }

/* 封面 */
.n49-cover { padding: 22px 0 8px; }
.n49-cover__bar { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-top: 3px double var(--accent); border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .3em; color: var(--accent); }
.n49-cover__t { margin: 8px 0 22px; text-align: center; font-size: clamp(44px, 12vw, 168px); line-height: 1; letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; }
.n49-cover__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 0; border-top: 1px solid var(--line); }
.n49-cover__grid > * { min-width: 0; padding: 24px 22px; border-right: 1px solid var(--line); }
.n49-cover__grid > :first-child { padding-left: 0; }
.n49-cover__grid > :last-child { border-right: 0; padding-right: 0; }
.n49-lead { position: relative; display: block; overflow: hidden; align-self: start; }
.n49-lead img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 640px; filter: saturate(.9) contrast(1.05); }
.n49-lead__txt { position: absolute; inset: auto 0 0 0; display: grid; gap: 6px; padding: 80px 24px 24px; background: linear-gradient(0deg, rgba(13, 12, 10, .96), rgba(13, 12, 10, .55) 60%, transparent); }
.n49-lead__k { font-size: 12px; letter-spacing: .28em; color: var(--accent); }
.n49-lead__t { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.15; color: var(--ink); }
.n49-lead__x { font-size: 14px; color: var(--muted); }
.n49-side__h { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); font-size: 13px; letter-spacing: .3em; color: var(--accent); font-family: var(--font); }
.n49-story { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px dotted var(--line); }
.n49-story:last-child { border-bottom: 0; }
.n49-story__fig img { width: 84px; aspect-ratio: 2 / 3; object-fit: cover; }
.n49-story__body { display: grid; gap: 2px; align-content: start; min-width: 0; }
.n49-story__no { font: 700 12px var(--serif); color: var(--accent); letter-spacing: .2em; }
.n49-story__t { font: 700 17px/1.3 var(--serif); }
.n49-story__x { font-size: 12.5px; color: var(--muted); }
.n49-note__tag { font: 700 22px/1.35 var(--serif); color: var(--ink); }
.n49-note__d { color: var(--muted); font-size: 14px; }
.n49-note__form { flex-direction: column; }
.n49-note__form button { background: transparent; border: 1px solid var(--accent); color: var(--accent); }

/* 区块 / 目录 */
.n49-sec { align-items: flex-end; padding-bottom: 10px; border-bottom: 1px solid var(--accent); }
.n49-sec__k { order: -1; letter-spacing: .3em; color: var(--accent); }
.n49-sec__t { font-size: clamp(24px, 3vw, 36px); }
.n49-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: clamp(44px, 6vw, 80px); }
.n49-duo > section { min-width: 0; }
.n49-idx, .n49-rank { list-style: none; counter-reset: none; }
.n49-idx a, .n49-rank a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.n49-idx__n, .n49-rank__n { flex: 0 0 auto; min-width: 2.2em; font: 700 22px var(--serif); color: var(--accent); }
.n49-idx__t, .n49-rank__t { flex: 1 1 auto; min-width: 0; font: 600 18px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n49-idx__c, .n49-rank__b { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* 编辑卡 */
.n49-ed__link { display: block; position: relative; }
.n49-ed__no { position: absolute; z-index: 2; left: -4px; top: -18px; font: 700 64px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--accent); pointer-events: none; }
.n49-ed__fig { display: block; border: 1px solid var(--line); padding: 8px; background: var(--surface); }
.n49-ed__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(.9); transition: filter .2s; }
.n49-ed:hover .n49-ed__fig { border-color: var(--accent); }
.n49-ed:hover img { filter: saturate(1.1); }
.n49-ed__body { display: grid; gap: 4px; padding: 14px 4px 0; }
.n49-ed__k { font-size: 11px; letter-spacing: .3em; color: var(--accent-2); }
.n49-ed__t { font: 700 22px/1.25 var(--serif); }
.n49-ed__m { font-size: 13px; color: var(--muted); }
.n49-grid { padding-top: 14px; }

/* 页面头 / 按钮 / 详情 */
.n49-ph { text-align: center; padding: 38px 0 22px; }
.n49-ph::before { content: ""; display: block; width: 64px; height: 1px; margin: 0 auto 14px; background: var(--accent); }
.n49-ph__k { letter-spacing: .3em; color: var(--accent); font-size: 12px; }
.n49-ph__t { font-size: clamp(32px, 5vw, 60px); }
.n49-btn { border-radius: 0; border-color: var(--accent); background: transparent; letter-spacing: .12em; }
.n49-btn--fill { background: var(--accent); color: var(--on-accent); }
.n49-pill, .n49-g { border-radius: 0; border-color: var(--line); }
.n49-dmag .n49-detail__t { color: var(--ink); }
.n49-dmag__main .n49-prose p:first-child::first-letter { float: left; margin: 4px 10px 0 0; font: 700 64px/.85 var(--serif); color: var(--accent); }
.n49-detail__syn { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.n49-eyebrow .n49-g { letter-spacing: .12em; }
.n49-ep { border-radius: 0; font-family: var(--serif); }
.n49-ep.is-current { background: var(--accent); }
.n49-h2 { font-family: var(--serif); font-size: 22px; color: var(--accent); letter-spacing: .1em; }
.sd-player { border: 1px solid var(--accent); }
.n49-pagination .page-numbers { border-radius: 0; background: transparent; color: var(--ink); }
.n49-filter__list a { font-size: 13px; letter-spacing: .12em; }
.n49-filter__list a:hover { color: var(--accent); }
.n49-result { padding: 18px 0; }
.n49-result__t { font: 700 20px var(--serif); }
.n49-foot { border-top: 1px solid var(--accent); }
.n49-foot__mark { font-family: var(--serif); color: transparent; -webkit-text-stroke: 1px var(--accent); letter-spacing: .04em; }
.n49-foot__links a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .n49-cover__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .n49-cover__grid > :first-child { grid-column: 1 / -1; padding: 0 0 22px; border-right: 0; }
  .n49-cover__grid > :nth-child(2) { padding-left: 0; }
  .n49-duo { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 560px) {
  .n49-cover__grid { grid-template-columns: minmax(0, 1fr); }
  .n49-cover__grid > * { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .n49-cover__bar span:nth-child(2) { display: none; }
  .n49-ed__no { font-size: 48px; top: -14px; }
  .n49-brand { font-size: 20px; letter-spacing: .08em; }
}
