@font-face {
  font-family: 'SJ Serif';
  src: url('../assets/fonts/noto-serif-sc-900-subset.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

body { background: var(--paper); }
.section { max-width: 1180px; margin: 0 auto; padding: 80px 24px 20px; }
.section-head { text-align: center; margin-bottom: 34px; }
.kicker { color: var(--red); font-size: 12px; letter-spacing: 5px; }
.section-head h2 { font-family: var(--serif); font-size: 34px; margin: 8px 0 10px; letter-spacing: 2px; font-weight: 900; }
.section-head p { color: var(--ink-soft); font-size: 14px; max-width: 720px; margin: 0 auto; }
.rule { width: 56px; height: 3px; background: var(--gold); margin: 16px auto 0; }

.hero { position: relative; background: linear-gradient(rgba(28,12,8,.56), rgba(28,12,8,.64)), url('../assets/img/hero.jpg') center 42% / cover no-repeat; border-bottom: 2px solid var(--red); padding: 100px 24px 78px; text-align: center; overflow: hidden; color: #fff8ec; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 12px 12px, rgba(255,248,236,.10) 2px, transparent 2.5px); background-size: 44px 44px; pointer-events: none; }
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }

/* 头图与图文卡片 */
.page-banner { position: relative; height: 240px; overflow: hidden; border-bottom: 2px solid var(--red); background: #4a1f18; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .82; }
.card .card-img, .episode .ep-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e5dccb; }
.card .card-img { border-radius: 6px 6px 0 0; margin: -20px -20px 14px; width: calc(100% + 40px); }
.card-media { padding-top: 0; }
@media (max-width: 820px) {
  .hero { padding: 72px 20px 60px; }
  .page-banner { height: 180px; }
}
.hero .eyebrow { font-size: 13px; letter-spacing: 8px; color: #e8c37a; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 62px); font-weight: 900; margin: 16px 0 10px; letter-spacing: 4px; color: #fff8ec; text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.hero .sub { font-family: var(--serif); font-size: 20px; color: #f0e6d4; letter-spacing: 3px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero .stats { display: flex; justify-content: center; gap: 42px; margin-top: 34px; flex-wrap: wrap; }
.hero .stat b { font-family: var(--serif); font-size: 30px; color: #e8c37a; display: block; }
.hero .stat span { font-size: 12.5px; color: #e6dccb; letter-spacing: 1px; }
.seal { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; background: var(--red); color: #fff8ec; border-radius: 8px; font-family: var(--serif); font-size: 17px; line-height: 1.25; margin-top: 28px; box-shadow: inset 0 0 0 2px rgba(255,248,236,.7); }

.screen { min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 32px; padding-bottom: 12px; }
.value-line { text-align: center; font-family: var(--serif); font-size: clamp(22px,3vw,34px); line-height: 1.9; letter-spacing: 2px; color: #3b3328; }
.value-line em { color: var(--red); font-style: normal; }

.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.grid > * { flex: 0 1 calc((100% - 36px) / 3); max-width: 360px; }
@media (max-width: 900px) { .grid > * { flex-basis: calc((100% - 18px) / 2); max-width: 420px; } }
@media (max-width: 600px) { .grid > * { flex-basis: 100%; } }
.season-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.season-grid > * { max-width: none; }
@media (max-width: 900px) { .season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .season-grid { grid-template-columns: 1fr; } }
.card { background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: 20px; position: relative; text-decoration: none; color: inherit; display: block; transition: transform .18s ease, border-color .18s ease; }
.card::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(176,138,62,.25); border-radius: 6px; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: var(--red); }
.card .no { font-size: 11px; color: var(--gold); letter-spacing: 2px; }
.card h3 { font-family: var(--serif); font-size: 20px; margin: 8px 0; }
.card p { font-size: 13px; color: var(--ink-soft); line-height: 1.8; margin: 0; }
.card .more { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--red); }

.map-frame { position: relative; width: 100%; height: min(72vh,600px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.08); background: var(--paper-deep); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-open { display: inline-block; margin-top: 14px; background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 999px; text-decoration: none; font-size: 13.5px; }
.map-fallback { display: none; padding: 40px 20px; text-align: center; }
.map-fallback.active { display: block; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.filter-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 30px 0 10px; }
.pager button { border: 1px solid var(--line); background: #fffdf8; color: var(--ink); border-radius: 999px; height: 36px; padding: 0 14px; cursor: pointer; font-size: 13px; font-family: var(--sans); }
.pager button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.pager button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button:disabled { opacity: .38; cursor: not-allowed; }
.pager .pager-arrow { font-size: 19px; line-height: 1; padding: 0 13px; }
.pager-info { font-size: 12.5px; color: var(--ink-soft); margin-left: 6px; }
.episode { display: grid; grid-template-columns: 110px 64px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.episode .ep-img { width: 110px; height: 70px; border-radius: 6px; }
.episode .ep-no { font-family: var(--serif); font-size: 22px; color: var(--red); }
.episode h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; }
.episode p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.episode a { font-size: 12.5px; color: var(--red); text-decoration: none; display: inline-block; margin-top: 8px; }
.season-block { margin-bottom: 44px; }
.season-block h2 { font-family: var(--serif); font-size: 26px; color: var(--red); border-bottom: 2px solid var(--gold); padding-bottom: 8px; }

.player-shell { position: relative; width: 100%; padding-top: 56.25%; background: #1b1b1b; border-radius: 10px; overflow: hidden; margin-top: 16px; }
.player-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.help-note { background: #f4eddf; border-left: 3px solid var(--gold); padding: 12px 16px; font-size: 12.5px; color: #6d6358; margin: 14px 0; }

.rights-block { margin: 60px auto 20px; max-width: 900px; background: #efe8d9; border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; font-size: 12.5px; color: #6d6358; line-height: 1.9; }
.rights-block b { color: var(--ink); }
.backtop { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; font-size: 20px; cursor: pointer; display: none; z-index: 900; }

@media (max-width: 820px) {
  .section { padding: 54px 18px 12px; }
  .hero .stats { gap: 20px; }
  .episode { grid-template-columns: 84px 1fr; gap: 10px; }
  .episode .ep-img { grid-row: span 2; width: 84px; height: 58px; }
  .site-nav a { font-size: 12px; padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
