@charset "UTF-8";

/* =========================================================
   绿帽社 · 夜间放映室与私密文学档案
   ========================================================= */
:root {
    color-scheme: dark;
    --ink: #0B0D0C;
    --background: #121514;
    --panel: #191D1C;
    --panel-soft: #202624;
    --green: #1F7A5C;
    --green-muted: #3B5950;
    --amber: #D48858;
    --text: #E6E3DC;
    --muted: #969C99;
    --line: rgba(150, 156, 153, .22);
    --line-strong: rgba(150, 156, 153, .38);
    --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
    --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --content: 1160px;
    --radius: 3px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body {
    margin: 0;
    background:
        radial-gradient(ellipse at 78% 0%, rgba(31, 122, 92, .10), transparent 34rem),
        var(--background);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: #F0B27F; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}
::selection { color: #fff; background: var(--green); }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 8px 14px; background: var(--amber); color: var(--ink);
}
.skip-link:focus { top: 12px; }
.site-header { background: rgba(11, 13, 12, .96); border-bottom: 1px solid var(--line); }
.topline, .identity-strip, .main-nav, .page-shell, .footer-inner, .footer-bottom {
    width: min(var(--content), calc(100% - 48px)); margin-inline: auto;
}
.topline {
    min-height: 82px; display: flex; align-items: center; justify-content: space-between;
    gap: 24px; border-bottom: 1px solid rgba(150, 156, 153, .12);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .08em; }
.brand img { width: 42px; height: 42px; object-fit: contain; border: 1px solid var(--line); border-radius: 2px; }
.brand small { display: block; color: var(--muted); font: 11px/1.4 var(--sans); letter-spacing: .12em; margin-top: 2px; }
.topline-note { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 0 3px rgba(31,122,92,.16); }
.identity-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 13px 0 14px; border-bottom: 1px solid var(--line);
}
.identity-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; color: var(--muted); font-size: 12px; }
.identity-copy strong { color: var(--amber); font-weight: 600; }
.identity-domain { font-family: var(--mono); color: var(--text); }
.entry-code { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; font-size: 11px; color: var(--muted); }
.entry-code code { color: var(--amber); font: 13px var(--mono); letter-spacing: .08em; }
.entry-help { max-width: 270px; }
.main-nav { display: flex; gap: 30px; min-height: 48px; align-items: center; overflow-x: auto; }
.main-nav a { color: #B9BFBA; font-size: 13px; white-space: nowrap; position: relative; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--amber); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 2px; background: var(--amber); }
.page-shell { padding-top: 30px; padding-bottom: 84px; }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .82fr); gap: 34px; align-items: stretch; }
.welcome-main { padding: 20px 0 18px; }
.eyebrow { margin: 0 0 10px; color: var(--amber); font: 11px/1.6 var(--mono); letter-spacing: .12em; }
h1, h2, h3 { margin-top: 0; }
h1, .section-heading h2, .page-intro h1, .detail-article h1 {
    font-family: var(--serif); font-weight: 600; letter-spacing: .025em;
}
.welcome-main h1 { max-width: 720px; margin: 0 0 15px; font-size: clamp(30px, 4.1vw, 48px); line-height: 1.3; }
.lead { max-width: 700px; color: #B8BFBA; font-size: 16px; line-height: 2; margin: 0 0 22px; }
.entry-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 17px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 13px; transition: background .2s, border-color .2s; }
.button-primary { background: var(--green); border-color: var(--green); color: #fff; }
.button-primary:hover { background: #286F57; color: #fff; }
.button-quiet:hover { border-color: var(--amber); }
.alias-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: 11px; }
.alias-line b { padding: 2px 8px; border: 1px solid var(--line); color: #C4C9C4; font-weight: 400; }
.entry-panel { padding: 20px; border: 1px solid var(--green-muted); border-top: 2px solid var(--green); background: linear-gradient(145deg, rgba(31,122,92,.10), transparent 65%), var(--panel); }
.panel-heading { display: flex; justify-content: space-between; color: var(--muted); font: 10px var(--mono); }
.panel-index { letter-spacing: .1em; }
.live-mark { color: var(--green); }
.entry-panel h2 { margin: 17px 0 8px; font: 21px var(--serif); }
.entry-panel p { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.domain-box, .code-box { padding: 10px 12px; margin-top: 9px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.domain-box span, .code-box span { display: block; color: var(--muted); font-size: 10px; }
.domain-box strong { display: block; margin-top: 3px; font: 12px var(--mono); overflow-wrap: anywhere; color: var(--text); }
.code-box code { display: block; color: var(--amber); font: 18px var(--mono); letter-spacing: .12em; margin-top: 3px; }
.entry-panel .small-note { margin: 12px 0; font-size: 10px; line-height: 1.7; }
.copy-button { border: 1px solid var(--green-muted); background: transparent; color: var(--text); padding: 7px 12px; border-radius: 2px; cursor: pointer; font-size: 11px; }
.copy-button:hover { border-color: var(--amber); color: var(--amber); }
.copy-feedback { display: inline-block; margin-left: 10px; color: var(--amber); font-size: 11px; }
.copy-feedback:not(.is-visible) { opacity: 0; }
.section-block { margin-top: 58px; padding-top: 25px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { font-size: 27px; line-height: 1.35; margin: 0 0 5px; }
.section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-size: 12px; white-space: nowrap; }
.text-link:hover { color: #F2BD91; }
.featured-film { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .8fr); gap: 25px; align-items: center; }
.film-poster { position: relative; display: block; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.film-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.72) contrast(1.04); transition: transform .5s; }
.film-poster:hover img { transform: scale(1.025); }
.poster-stamp { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; background: rgba(11,13,12,.82); color: var(--amber); font: 10px var(--mono); }
.film-copy { padding: 8px 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font: 10px var(--mono); }
.meta-line span:first-child { color: var(--green); }
.film-copy h3 { margin: 10px 0; font: 25px/1.45 var(--serif); }
.film-copy p { color: #B8BFBA; font-size: 13px; line-height: 2; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tag { display: inline-block; border: 1px solid rgba(59,89,80,.8); padding: 2px 8px; color: #A9B8AF; font-size: 10px; border-radius: 2px; }
.film-list { margin-top: 18px; border-top: 1px solid var(--line); }
.film-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 90px; gap: 14px; align-items: center; padding: 15px 8px; border-bottom: 1px solid var(--line); }
.film-number { color: var(--amber); font: 18px var(--mono); }
.film-row h3 { margin: 0 0 3px; font: 17px var(--serif); }
.film-row p { margin: 0; color: var(--muted); font-size: 11px; }
.film-duration { text-align: right; color: var(--muted); font: 11px var(--mono); }
.essay-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.essay-index-card { min-height: 260px; padding: 20px; border-right: 1px solid var(--line); position: relative; }
.essay-index-card:last-child { border-right: 0; }
.chapter-mark { color: var(--amber); font: 11px var(--mono); }
.essay-index-card .eyebrow { margin-top: 17px; }
.essay-index-card h3 { font: 18px/1.6 var(--serif); margin: 8px 0; }
.essay-index-card p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.9; }
.essay-index-card .text-link { margin-top: 8px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.collection-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(31,122,92,.07), transparent 60%), var(--panel); min-height: 220px; }
.collection-card:hover { border-color: var(--green-muted); }
.collection-type { color: var(--amber); font: 10px var(--mono); }
.collection-card h2, .collection-card h3 { font: 20px/1.5 var(--serif); margin: 12px 0 7px; }
.collection-card p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 0 0 16px; }
.card-arrow { color: var(--amber); font-size: 11px; margin-top: auto; }
.topic-list { border-top: 1px solid var(--line); }
.topic-row { display: grid; grid-template-columns: 140px minmax(0,1fr) 20px; align-items: center; gap: 16px; padding: 13px 8px; border-bottom: 1px solid var(--line); }
.topic-row strong { font: 16px var(--serif); }
.topic-row span { color: var(--muted); font-size: 12px; }
.topic-row i { color: var(--amber); font-style: normal; }
.notice-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding: 18px 20px; background: var(--panel); border-left: 2px solid var(--amber); }
.notice-band strong { font: 15px var(--serif); }
.notice-band p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.notice-band a { color: var(--amber); font-size: 11px; white-space: nowrap; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.35; margin: 0 0 8px; }
.page-intro p:not(.eyebrow) { max-width: 720px; color: var(--muted); margin: 0; font-size: 13px; }
.intro-count { min-width: 110px; text-align: right; color: var(--muted); }
.intro-count strong { display: block; color: var(--amber); font: 34px var(--mono); }
.intro-count span { font-size: 11px; }
.search-form { margin: 22px 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); }
.search-form label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.search-form > div { display: flex; gap: 8px; }
.search-form input { min-width: 0; flex: 1; padding: 9px 11px; color: var(--text); background: var(--ink); border: 1px solid var(--line-strong); border-radius: 2px; }
.search-form button { padding: 8px 20px; color: white; border: 1px solid var(--green); background: var(--green); border-radius: 2px; cursor: pointer; }
.search-form p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.search-form p a { color: var(--amber); margin-left: 8px; }
.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.archive-card { display: grid; grid-template-columns: 40% minmax(0,1fr); min-height: 190px; border: 1px solid var(--line); background: var(--panel); }
.archive-card__image { display: block; min-height: 100%; background: var(--ink); overflow: hidden; }
.archive-card__image img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; filter: saturate(.72); }
.archive-card__body { padding: 14px; }
.archive-card h3 { margin: 7px 0; font: 17px/1.55 var(--serif); }
.archive-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.archive-card .tag-list { margin: 8px 0; }
.archive-card .text-link { font-size: 10px; }
.essay-archive .archive-card { grid-template-columns: 1fr; min-height: 0; }
.essay-archive .archive-card__body { padding: 20px; }
.essay-archive .archive-card h3 { font-size: 19px; }
.empty-state { grid-column: 1 / -1; padding: 30px; color: var(--muted); border: 1px dashed var(--line-strong); text-align: center; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; color: var(--muted); font-size: 11px; }
.breadcrumb a { color: #B6C0B9; }
.detail-article { max-width: 850px; margin: 0 auto; }
.detail-article h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 43px); line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font: 11px var(--mono); }
.detail-image { margin: 28px 0 20px; }
.detail-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); filter: saturate(.72); }
.detail-image figcaption { margin-top: 7px; color: var(--muted); font-size: 10px; }
.detail-lead { margin: 24px 0; padding: 17px 20px; border-left: 2px solid var(--green); background: var(--panel); color: #D3D7D1; font: 17px/2 var(--serif); }
.article-body { color: #D0D2CC; font-size: 15px; line-height: 2.15; }
.article-body p { margin: 0 0 22px; }
.director-note, .reading-callout { margin: 32px 0; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.director-note h2 { margin: 0 0 8px; font: 20px var(--serif); }
.director-note p, .reading-callout p { color: var(--muted); font-size: 13px; margin: 0; line-height: 2; }
.reading-callout strong { display: block; color: var(--amber); margin-bottom: 6px; }
.article-pagination { display: flex; justify-content: space-between; gap: 18px; padding-top: 22px; margin-top: 30px; border-top: 1px solid var(--line); }
.article-pagination a { color: var(--amber); font-size: 12px; }
.collection-contents { margin-top: 30px; padding: 22px; background: var(--panel); border: 1px solid var(--line); }
.collection-contents ol { margin: 10px 0 0; padding-left: 22px; }
.collection-contents li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.collection-contents li:last-child { border-bottom: 0; }
.collection-contents li span { color: var(--text); }
.collection-contents li a { display: block; color: var(--amber); font-size: 11px; }
.collection-grid-large { margin-top: 24px; }
.collection-grid-large .collection-card { min-height: 290px; }
.collection-preview { display: grid; gap: 5px; padding: 12px 0; margin: auto 0 12px; border-top: 1px solid var(--line); }
.collection-preview span { color: #B8BFBA; font-size: 11px; }
.topic-detail-list { margin-top: 20px; border-top: 1px solid var(--line); }
.topic-detail { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 16px; padding: 23px 10px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.topic-number { color: var(--amber); font: 20px var(--mono); }
.topic-detail h2 { margin: 0 0 5px; font: 21px var(--serif); }
.topic-detail p { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.related-note { margin-top: 32px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.related-note h2 { margin: 0 0 7px; font: 18px var(--serif); }
.related-note p { color: var(--muted); font-size: 12px; line-height: 2; margin: 0 0 20px; }
.related-note p:last-child { margin-bottom: 0; }
.not-found-panel { max-width: 680px; margin: 55px auto; padding: 34px; border: 1px solid var(--line); background: var(--panel); text-align: center; }
.not-found-panel h1 { font: 32px var(--serif); }
.not-found-panel p:not(.eyebrow) { color: var(--muted); }
.not-found-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.not-found-links a { padding: 8px 12px; border: 1px solid var(--line); color: var(--amber); font-size: 12px; }
.site-footer { background: var(--ink); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding: 34px 0 25px; }
.footer-brand { font: 21px var(--serif); letter-spacing: .1em; }
.footer-inner p { max-width: 490px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-content: start; }
.footer-links a { color: #B4BCB6; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.footer-bottom a { color: var(--amber); }
.footer-disclaimer { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 0 0 22px; color: #737C76; font-size: 10px; line-height: 1.8; }
@media (max-width: 900px) {
    .welcome-grid { grid-template-columns: 1fr; gap: 20px; }
    .entry-panel { max-width: none; }
    .featured-film { grid-template-columns: 1fr; }
    .film-copy { padding: 0; }
    .archive-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .topline, .identity-strip, .main-nav, .page-shell, .footer-inner, .footer-bottom { width: min(100% - 30px, var(--content)); }
    .topline { min-height: 70px; }
    .brand { font-size: 19px; }
    .topline-note { font-size: 10px; }
    .identity-strip { align-items: flex-start; flex-direction: column; gap: 8px; }
    .entry-code { justify-content: flex-start; }
    .entry-help { max-width: none; }
    .main-nav { gap: 22px; min-height: 46px; }
    .main-nav a[aria-current="page"]::after { bottom: -12px; }
    .page-shell { padding-top: 18px; padding-bottom: 54px; }
    .welcome-main { padding-top: 8px; }
    .welcome-main h1 { font-size: 31px; }
    .lead { font-size: 14px; }
    .entry-panel { padding: 16px; }
    .section-block { margin-top: 40px; padding-top: 20px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .section-heading h2 { font-size: 23px; }
    .film-row { grid-template-columns: 32px minmax(0,1fr); gap: 9px; }
    .film-duration { grid-column: 2; text-align: left; }
    .essay-feature-grid { grid-template-columns: 1fr; }
    .essay-index-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .essay-index-card:last-child { border-bottom: 0; }
    .collection-grid { grid-template-columns: 1fr; }
    .topic-row { grid-template-columns: 100px minmax(0,1fr) 16px; gap: 8px; }
    .topic-row strong { font-size: 14px; }
    .topic-row span { font-size: 10px; }
    .notice-band { align-items: flex-start; flex-direction: column; }
    .page-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
    .intro-count { text-align: left; display: flex; align-items: baseline; gap: 9px; }
    .intro-count strong { font-size: 24px; }
    .archive-card { grid-template-columns: 1fr; }
    .archive-card__image img { aspect-ratio: 16 / 9; min-height: 0; }
    .archive-card__body { padding: 16px; }
    .detail-article h1 { font-size: 29px; }
    .detail-lead { font-size: 15px; padding: 13px 15px; }
    .article-body { font-size: 14px; }
    .article-pagination { flex-direction: column; }
    .topic-detail { grid-template-columns: 38px minmax(0,1fr); gap: 9px; padding: 18px 2px; }
    .topic-detail h2 { font-size: 18px; }
    .footer-inner { flex-direction: column; padding-top: 26px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
    .footer-disclaimer { width: calc(100% - 30px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 交互细节与长文本阅读状态 */
.main-nav a, .footer-links a, .text-link, .article-pagination a { transition: color .18s ease; }
.archive-card, .essay-index-card, .topic-row, .collection-card { transition: border-color .18s ease, background-color .18s ease; }
.archive-card:hover { border-color: var(--green-muted); }
.archive-card__image img { transition: filter .25s ease, transform .45s ease; }
.archive-card:hover .archive-card__image img { filter: saturate(.9); transform: scale(1.018); }
.entry-panel code, .identity-domain, .film-duration, .film-number, .chapter-mark { font-variant-numeric: tabular-nums; }
.detail-article .article-body { max-width: 760px; margin-inline: auto; }
.text-detail .article-body p:first-child::first-letter { float: left; padding: 7px 9px 0 0; color: var(--amber); font: 42px/1 var(--serif); }
.article-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
input::placeholder { color: #6F7872; }
button:disabled { cursor: not-allowed; opacity: .55; }
.tag-list:empty { display: none; }
.collection-contents li::marker { color: var(--amber); font-family: var(--mono); }
.topic-detail:target { background: linear-gradient(90deg, rgba(31,122,92,.11), transparent); }
.not-found-panel .button { margin-top: 10px; }
@media (min-width: 1100px) {
    .welcome-main { padding-right: 24px; }
    .entry-panel { margin-block: 4px; }
    .section-block { margin-top: 66px; }
}
@media (max-width: 420px) {
    .topline-note { display: none; }
    .brand small { letter-spacing: .04em; }
    .alias-line { gap: 6px; }
    .alias-line b { padding-inline: 6px; }
    .search-form { padding: 10px; }
    .search-form button { padding-inline: 13px; }
    .domain-box strong { font-size: 11px; }
}
