/* ============================================================
   paper 模板 — 报纸/杂志排版风格
   配色：米白(#f9f6f0) + 深棕(#2c1810) + 红色强调(#c0392b)
   字体：Noto Serif SC（衬线主体）
   ============================================================ */

/* ── 变量 ── */
:root {
    --bg:        #f9f6f0;
    --bg-alt:    #f2ede4;
    --ink:       #2c1810;
    --ink-light: #6b4c3b;
    --ink-dim:   #9e7b6a;
    --red:       #c0392b;
    --red-dark:  #922b21;
    --border:    #d4c5b0;
    --border-light: #e8dfd0;
    --serif:     "Noto Serif SC", "Songti SC", "SimSun", serif;
    --sans:      "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    --radius:    2px;
    --col-gap:   24px;
    --max-w:     1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--serif);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── 工具 ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   press-page（body 基类，已在 layout.php body 上挂载）
   ============================================================ */
.press-page { /* 无额外样式，仅作语义标记 */ }

/* ============================================================
   press-mast — 报头（masthead）
   ============================================================ */
.press-mast {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(44,24,16,.06);
}
.press-mast__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
}
.press-mast__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 10px;
}
.press-mast__logo {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: .04em;
    line-height: 1.1;
    white-space: nowrap;
}
.press-mast__logo:hover { color: var(--red); }
.press-mast__tagline {
    font-family: var(--sans);
    font-size: .72rem;
    color: var(--ink-dim);
    letter-spacing: .08em;
    margin-top: 2px;
}
.press-mast__brand { flex-shrink: 0; }

/* 搜索框 */
.press-mast__search {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex: 0 1 340px;
}
.press-mast__search-input {
    flex: 1;
    padding: 7px 12px;
    font-family: var(--sans);
    font-size: .85rem;
    border: none;
    background: #fff;
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.press-mast__search-input::placeholder { color: var(--ink-dim); }
.press-mast__search-btn {
    padding: 7px 14px;
    background: var(--red);
    color: #fff;
    font-family: var(--sans);
    font-size: .82rem;
    white-space: nowrap;
    transition: background .15s;
}
.press-mast__search-btn:hover { background: var(--red-dark); }

/* ── press-rule（分隔线） ── */
.press-rule {
    height: 1px;
    background: var(--border);
    border: none;
    margin: 0;
}
.press-rule--thick {
    height: 3px;
    background: var(--ink);
}
.press-rule--red {
    height: 3px;
    background: var(--red);
}

/* ── press-nav ── */
.press-nav {
    position: relative;
}
.press-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 6px 0;
}
.press-nav__link {
    font-family: var(--sans);
    font-size: .82rem;
    padding: 4px 12px 4px 0;
    color: var(--ink-light);
    letter-spacing: .03em;
    transition: color .15s;
    white-space: nowrap;
}
.press-nav__link:hover,
.press-nav__link.is-active { color: var(--red); }
.press-nav__link.is-active { font-weight: 700; }

/* 移动端汉堡按钮 */
.press-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0;
}
.press-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: all .2s;
}

/* ============================================================
   press-body — 页面内容容器
   ============================================================ */
.press-body {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* ============================================================
   press-main
   ============================================================ */
.press-main { /* 由 press-body 撑开，无额外样式 */ }

/* ============================================================
   press-section
   ============================================================ */
.press-section {
    margin-bottom: 32px;
}
.press-section__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.press-section__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    flex: 1;
    padding: 0 8px;
    white-space: nowrap;
}
.press-section__more {
    font-family: var(--sans);
    font-size: .78rem;
    color: var(--ink-dim);
    white-space: nowrap;
    padding-left: 8px;
}
.press-section__more:hover { color: var(--red); }

/* ============================================================
   press-front — 首页头版三栏
   ============================================================ */
.press-front {
    margin-bottom: 32px;
    border-top: 3px solid var(--ink);
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}
.press-front__inner {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 0 var(--col-gap);
    padding-top: 20px;
}

/* ── press-col ── */
.press-col { padding: 0 12px; }
.press-col:first-child { padding-left: 0; border-right: 1px solid var(--border); }
.press-col:nth-child(2) { border-right: 1px solid var(--border); }
.press-col:last-child  { padding-right: 0; }

.press-col--lead { /* 左主栏 */ }
.press-col--mid  { /* 中辅栏 */ }
.press-col--side { /* 右速报栏 */ }

.press-col__label {
    font-family: var(--sans);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 8px;
}

/* ── press-headline ── */
.press-headline {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .01em;
    margin-bottom: 6px;
}
.press-headline--lead { font-size: 2rem; }
.press-headline--detail {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 6px;
}
.press-headline a:hover { color: var(--red); }
.press-headline__meta {
    font-family: var(--sans);
    font-size: .78rem;
    color: var(--ink-dim);
    margin-bottom: 10px;
    letter-spacing: .03em;
}

/* ── press-thumb ── */
.press-thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
    background: var(--bg-alt);
    margin-bottom: 10px;
}
.press-thumb img {
    width: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.press-thumb:hover img { transform: scale(1.03); }
.press-thumb--lead { aspect-ratio: 16/10; }
.press-thumb--sm   { width: 100px; aspect-ratio: 2/3; flex-shrink: 0; }

/* ── press-quote ── */
.press-quote {
    border-left: 3px solid var(--red);
    padding: 10px 14px;
    margin: 12px 0;
    color: var(--ink-light);
    font-style: italic;
    font-size: .92rem;
    line-height: 1.7;
    background: var(--bg-alt);
}
.press-quote::before { content: '\201C'; font-size: 1.4em; color: var(--red); vertical-align: -.2em; margin-right: 2px; }
.press-quote::after  { content: '\201D'; font-size: 1.4em; color: var(--red); vertical-align: -.2em; margin-left: 2px; }
.press-quote--detail {
    font-size: 1rem;
    padding: 14px 20px;
}

/* ── press-article ── */
.press-article { margin-bottom: 12px; }
.press-article--compact { margin-bottom: 6px; }
.press-article__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}
.press-article__title--sm {
    font-size: .9rem;
    font-weight: 600;
}
.press-article__title a:hover { color: var(--red); }
.press-article__meta {
    font-family: var(--sans);
    font-size: .72rem;
    color: var(--ink-dim);
    margin-bottom: 4px;
    letter-spacing: .02em;
}
.press-article__excerpt {
    font-size: .85rem;
    color: var(--ink-light);
    line-height: 1.65;
}
.press-article__more {
    font-family: var(--sans);
    font-size: .82rem;
    color: var(--red);
    font-weight: 600;
}
.press-article__more:hover { color: var(--red-dark); }

/* ── press-badge ── */
.press-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--red);
    color: #fff;
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 1px;
    letter-spacing: .04em;
}
.press-badge--inline {
    position: static;
    background: var(--red);
    color: #fff;
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 1px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ============================================================
   press-list-grid — 最新更新（图文横排列表）
   ============================================================ */
.press-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.press-list-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.press-list-item__copy { flex: 1; min-width: 0; }

/* ============================================================
   press-compact-list — 紧凑文字列表（分类速览/相关推荐）
   ============================================================ */
.press-compact-list {
    display: flex;
    flex-direction: column;
}
.press-compact-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: .9rem;
}
.press-compact-item__num {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--red);
    min-width: 20px;
    flex-shrink: 0;
}
.press-compact-item__link {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.press-compact-item__link:hover { color: var(--red); }
.press-compact-item__meta {
    font-family: var(--sans);
    font-size: .72rem;
    color: var(--ink-dim);
    flex-shrink: 0;
}

/* ============================================================
   press-entry-list — 分类/搜索结果（图+文横排）
   ============================================================ */
.press-entry-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.press-entry {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.press-entry__body { flex: 1; min-width: 0; }
.press-entry__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}
.press-entry__title a:hover { color: var(--red); }
.press-entry__meta {
    font-family: var(--sans);
    font-size: .75rem;
    color: var(--ink-dim);
    margin-bottom: 5px;
    letter-spacing: .02em;
}
.press-entry__excerpt {
    font-size: .88rem;
    color: var(--ink-light);
    line-height: 1.65;
}

/* ============================================================
   press-cat-banner — 分类页标题区
   ============================================================ */
.press-cat-banner { padding: 10px 0 14px; }
.press-cat-banner__title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 4px;
}
.press-cat-banner__meta {
    font-family: var(--sans);
    font-size: .8rem;
    color: var(--ink-dim);
}

/* ============================================================
   press-filter — 筛选区
   ============================================================ */
.press-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.press-filter__group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}
.press-filter__label {
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ink-dim);
    padding-top: 2px;
    flex-shrink: 0;
    min-width: 28px;
}
.press-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.press-filter__chip {
    font-family: var(--sans);
    font-size: .75rem;
    padding: 2px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink-light);
    background: transparent;
    transition: all .15s;
}
.press-filter__chip:hover { border-color: var(--red); color: var(--red); }
.press-filter__chip.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ============================================================
   press-empty — 空状态
   ============================================================ */
.press-empty {
    padding: 24px 0;
    color: var(--ink-light);
    font-style: italic;
    font-size: .92rem;
}

/* ============================================================
   press-detail-layout — 详情页主结构
   ============================================================ */
.press-detail-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 0 32px;
    align-items: start;
}
.press-detail-main { min-width: 0; }
.press-detail-side { }

/* ── 播放器 ── */
.press-player-wrap {
    position: relative;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16/9;
}
.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}
.press-player-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    color: #aaa;
    font-family: var(--sans);
    font-size: .9rem;
    padding: 20px;
    text-align: center;
}
.press-fallback-link {
    display: block;
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--red);
    color: #fff;
    font-family: var(--sans);
    font-size: .85rem;
    text-align: center;
    border-radius: var(--radius);
}
.press-fallback-link:hover { background: var(--red-dark); color: #fff; }

/* ── 片源切换 ── */
.press-source-list {
    margin-bottom: 16px;
}
.press-source-list__label {
    font-family: var(--sans);
    font-size: .72rem;
    color: var(--ink-dim);
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.press-source-btn {
    display: inline-block;
    margin: 3px 4px 3px 0;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: .78rem;
    color: var(--ink-light);
    background: transparent;
    transition: all .15s;
}
.press-source-btn:hover { border-color: var(--red); color: var(--red); }
.press-source-btn.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ── 影片信息表 ── */
.press-info-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.press-info-table__row {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: .85rem;
}
.press-info-table__row dt {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--ink-dim);
    font-size: .78rem;
    min-width: 40px;
    flex-shrink: 0;
}
.press-info-table__row dd { color: var(--ink-light); }

/* ── 海报 ── */
.press-poster {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.press-poster img { width: 100%; display: block; }

/* ── 观影提示 ── */
.press-note-list {
    list-style: disc;
    padding-left: 18px;
    font-size: .85rem;
    color: var(--ink-light);
    line-height: 1.75;
}

/* ============================================================
   press-search-form — 搜索页行内搜索框
   ============================================================ */
.press-search-form {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 480px;
    margin-top: 14px;
}
.press-search-form__input {
    flex: 1;
    padding: 9px 14px;
    font-family: var(--sans);
    font-size: .9rem;
    border: none;
    background: #fff;
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.press-search-form__input::placeholder { color: var(--ink-dim); }
.press-search-form__btn {
    padding: 9px 18px;
    background: var(--red);
    color: #fff;
    font-family: var(--sans);
    font-size: .85rem;
    white-space: nowrap;
    transition: background .15s;
}
.press-search-form__btn:hover { background: var(--red-dark); }

/* ============================================================
   press-pagination — 分页
   ============================================================ */
.press-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.press-pagination__link {
    font-family: var(--sans);
    font-size: .8rem;
    padding: 4px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink-light);
    background: transparent;
    transition: all .15s;
}
.press-pagination__link:hover { border-color: var(--red); color: var(--red); }
.press-pagination__link.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ============================================================
   press-footer
   ============================================================ */
.press-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.press-footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 16px 20px;
}
.press-footer__cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}
.press-footer__heading {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 10px;
}
.press-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.press-footer__links a {
    font-family: var(--sans);
    font-size: .78rem;
    color: var(--ink-light);
}
.press-footer__links a:hover { color: var(--red); }
.press-footer__col p {
    font-size: .82rem;
    color: var(--ink-dim);
    line-height: 1.7;
    margin-bottom: 6px;
}
.press-footer__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--sans);
    font-size: .72rem;
    color: var(--ink-dim);
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   移动端 menu-open 状态
   ============================================================ */
@media (max-width: 860px) {
    .press-nav__toggle { display: flex; }
    .press-nav__links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 3px solid var(--red);
        padding: 10px 16px;
        box-shadow: 0 6px 16px rgba(44,24,16,.1);
        z-index: 200;
    }
    .menu-open .press-nav__links { display: flex; }
    .press-nav__link { padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--border-light); }
}

/* ============================================================
   响应式布局
   ============================================================ */
@media (max-width: 1024px) {
    .press-front__inner { grid-template-columns: 1.5fr 1fr; }
    .press-col--side { display: none; }
    .press-col:first-child { border-right: 1px solid var(--border); }
    .press-col:nth-child(2) { border-right: none; }
}

@media (max-width: 720px) {
    .press-front__inner { grid-template-columns: 1fr; }
    .press-col { border-right: none !important; border-bottom: 1px solid var(--border); padding: 16px 0; }
    .press-col--mid { display: none; }
    .press-detail-layout { grid-template-columns: 1fr; }
    .press-detail-side { display: none; }
    .press-list-grid { grid-template-columns: 1fr; }
    .press-info-table { grid-template-columns: 1fr; }
    .press-mast__top { flex-wrap: wrap; }
    .press-mast__search { flex: 1 1 100%; order: 3; }
    .press-footer__cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .press-headline--lead { font-size: 1.4rem; }
    .press-headline--detail { font-size: 1.2rem; }
    .press-thumb--sm { width: 80px; }
    .press-entry { gap: 10px; }
}

/* ============================================================
   ad 占位（app_render_ad 输出用）
   ============================================================ */
.ad-slot {
    text-align: center;
    margin: 16px 0;
    min-height: 50px;
    overflow: hidden;
}

/* 精彩影评区块 */
.press-quote--review {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    padding: 16px 20px;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-light);
    font-style: italic;
}

/* 折叠按钮样式 */
.filter-toggle-btn { display:inline-block; margin:6px 0 4px; padding:4px 14px; font-size:12px; cursor:pointer; background:#f0f0f0; border:1px solid #ddd; border-radius:4px; color:#666; }
.filter-toggle-btn:hover { color:#333; border-color:#bbb; }