/* 51吃瓜影视档案馆复古视觉系统 */
:root {
  --ink: #211812;
  --ink-soft: #4a3427;
  --paper: #efe0bd;
  --paper-deep: #d9bf88;
  --gold: #b48a38;
  --red: #8a2d22;
  --brown: #382318;
  --line: rgba(52, 35, 24, .22);
  --shadow: 0 18px 50px rgba(33, 24, 18, .18);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(180, 138, 56, .20), transparent 28rem),
    linear-gradient(120deg, rgba(56, 35, 24, .05) 0 25%, transparent 25% 50%, rgba(56,35,24,.04) 50% 75%, transparent 75%),
    var(--paper);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: var(--brown);
  color: #f6e6c6;
  font-size: 14px;
}
.topbar-inner { display: flex; gap: 14px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.mark-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 4px rgba(180,138,56,.18); }
.topbar-note { opacity: .82; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(239, 224, 189, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.masthead { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-seal {
  display: grid; place-items: center; width: 54px; height: 54px; border: 2px solid var(--ink);
  border-radius: 50%; background: var(--red); color: #f8e8c8; font-weight: 900; letter-spacing: -1px;
  box-shadow: inset 0 0 0 4px rgba(248,232,200,.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 24px; letter-spacing: 2px; }
.brand-text em { font-size: 13px; font-style: normal; color: var(--ink-soft); margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a.is-active { background: var(--brown); color: #f7e7c8; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #f6e7c9; border-radius: 12px; padding: 8px 12px; font-size: 22px; }
.hero { padding: 72px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 42px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; background: rgba(138,45,34,.10); color: var(--red); border: 1px solid rgba(138,45,34,.25); border-radius: 999px; font-weight: 700; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 6vw, 70px); letter-spacing: 1px; }
.hero p { font-size: 18px; color: var(--ink-soft); margin: 0 0 24px; }
.hero-actions, .button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--brown); border-radius: 999px; padding: 11px 18px;
  background: var(--brown); color: #f7e7c8; font-weight: 700; box-shadow: 0 10px 24px rgba(33,24,18,.14);
}
.btn.secondary { background: transparent; color: var(--brown); box-shadow: none; }
.btn:hover { transform: translateY(-1px); }
.hero-card {
  position: relative; padding: 24px; border-radius: var(--radius); background: rgba(255, 245, 221, .72);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.hero-card:before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(52,35,24,.25); border-radius: 16px; pointer-events: none; }
.hero-card img { position: relative; border-radius: 18px; }
.section { padding: 54px 0; }
.section.alt { background: rgba(56, 35, 24, .06); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head p { max-width: 660px; color: var(--ink-soft); margin: 0; }
.section h2 { font-size: clamp(26px, 4vw, 42px); }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: rgba(255, 246, 222, .76); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 12px 28px rgba(33,24,18,.08); position: relative; overflow: hidden;
}
.card:after { content: ""; position: absolute; inset: auto 16px 12px 16px; border-bottom: 2px dotted rgba(52,35,24,.16); }
.card img.icon { width: 74px; margin-bottom: 14px; }
.card h3 { font-size: 22px; }
.card p { color: var(--ink-soft); margin: 0 0 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-list span, .tag { display: inline-flex; padding: 5px 9px; border: 1px solid rgba(52,35,24,.22); border-radius: 999px; background: rgba(180,138,56,.12); font-size: 13px; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline:before { content: ""; position: absolute; top: 0; bottom: 0; left: 18px; width: 2px; background: rgba(52,35,24,.22); }
.timeline-item { position: relative; padding-left: 54px; }
.timeline-item:before { content: ""; position: absolute; left: 9px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.timeline-item .year { font-weight: 900; color: var(--red); letter-spacing: 1px; }
.archive-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; background: rgba(255,246,222,.78); border: 1px solid var(--line); }
.archive-table th, .archive-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(52,35,24,.14); vertical-align: top; }
.archive-table th { background: rgba(56,35,24,.10); color: var(--brown); }
.archive-table tr:last-child td { border-bottom: none; }
.filter-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.filter-panel label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-weight: 700; }
.filter-panel select, .filter-panel input, textarea, input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; background: #fff4d7; color: var(--ink); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
.note { border-left: 4px solid var(--red); padding: 14px 16px; background: rgba(138,45,34,.08); border-radius: 14px; color: var(--ink-soft); }
.poster-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: center; }
.poster-row img { border-radius: 18px; border: 1px solid var(--line); background: #f6e7c9; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.kpi div { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(255,246,222,.66); }
.kpi strong { display: block; font-size: 26px; color: var(--red); }
.video-card { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.video-thumb { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); }
.video-thumb:after { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(33,24,18,.82); color: #f7e7c8; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,246,222,.74); padding: 16px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--brown); }
.faq p { color: var(--ink-soft); margin-bottom: 0; }
.breadcrumb { padding-top: 24px; color: var(--ink-soft); font-size: 14px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.page-hero { padding: 46px 0 36px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); }
.page-hero p { max-width: 760px; color: var(--ink-soft); font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.site-footer { background: var(--brown); color: #f7e7c8; padding: 42px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; }
.site-footer h2 { font-size: 20px; margin-bottom: 10px; }
.site-footer p { margin: 0 0 8px; color: rgba(247,231,200,.82); }
.site-footer a { text-decoration: underline; text-underline-offset: 4px; }
.date-line { color: #f1d092 !important; }
@media (max-width: 920px) {
  .hero-grid, .poster-row, .grid.two { grid-template-columns: 1fr; }
  .grid.three, .grid.four, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 108px; padding: 14px; background: #f3e3c1; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1180px); }
  .hero { padding-top: 46px; }
  .grid.three, .grid.four, .footer-grid, .filter-panel, .kpi, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .video-card { grid-template-columns: 1fr; }
  .site-nav.is-open { grid-template-columns: 1fr; top: 104px; }
  .archive-table { display: block; overflow-x: auto; }
  .topbar-note { display: none; }
  .brand-text strong { font-size: 21px; }
}
