@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #12161B;
  --deep: #0B0E11;
  --panel: #1B2128;
  --panel-2: #202831;
  --line: #303943;
  --text: #E6E9ED;
  --muted: #8E98A4;
  --amber: #D9822B;
  --gold: #F0A848;
  --teal: #3A7D8C;
  --radius: 5px;
  --container: 1240px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select { font: inherit; }
button, a, input, select { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 99; padding: 8px 14px; color: #111; background: var(--gold); }
.skip-link:focus { top: 10px; }
.site-header { background: var(--deep); border-bottom: 1px solid #252d35; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 4px; }
.brand strong { display: block; color: var(--gold); font-size: 21px; line-height: 1.25; letter-spacing: 1px; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a { padding: 9px 15px; color: #bac2cb; border: 1px solid transparent; border-radius: var(--radius); }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--gold); border-color: #59432d; background: #211b16; }
.menu-toggle { display: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 8px 12px; border-radius: var(--radius); }
.hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: 26px; padding-top: 34px; }
.hero-copy { min-height: 310px; padding: 30px 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(135deg, #1b2229, #151a20 72%); border: 1px solid var(--line); border-radius: var(--radius); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.eyebrow i { width: 7px; height: 7px; display: inline-block; background: var(--amber); border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 13px 0 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.25; letter-spacing: .5px; }
.hero-lead { max-width: 660px; margin-bottom: 23px; color: #b7c0c9; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 700; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: #17120d; background: var(--amber); }
.button--primary:hover { color: #17120d; background: var(--gold); }
.button--quiet { color: var(--text); border-color: #46515d; background: transparent; }
.button--outline { color: var(--gold); border-color: var(--amber); background: transparent; }
.hero-index { padding: 21px 22px; background: #171d23; border: 1px solid var(--line); border-radius: var(--radius); }
.index-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.index-grid { display: grid; grid-template-columns: 1fr 1fr; }
.index-grid a { min-height: 82px; padding: 12px 9px; display: grid; grid-template-columns: 30px 1fr; align-content: center; border-bottom: 1px solid #29323b; }
.index-grid a:nth-child(odd) { border-right: 1px solid #29323b; }
.index-grid b { grid-row: span 2; color: var(--amber); font-size: 12px; }
.index-grid span { font-weight: 700; }
.index-grid small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.filter-panel { margin-top: 20px; padding: 20px 22px 17px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 4px 0 5px; font-size: 25px; line-height: 1.35; }
.section-heading p { margin: 0; max-width: 720px; color: var(--muted); }
.section-heading--compact { align-items: center; margin-bottom: 14px; }
.text-link { color: var(--gold); font-size: 13px; font-weight: 700; white-space: nowrap; }
.filter-form { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: end; gap: 12px; }
.filter-form label { display: grid; gap: 5px; color: #aeb8c2; font-size: 12px; }
.filter-form input, .filter-form select { width: 100%; height: 42px; padding: 0 12px; color: var(--text); background: #11161b; border: 1px solid #3a444f; border-radius: 4px; }
.filter-form input::placeholder { color: #707c88; }
.quick-tags, .catalog-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.quick-tags a, .catalog-tags a, .genre-tags a { padding: 4px 10px; color: #a9cbd1; background: #1b3036; border: 1px solid #294c55; border-radius: 3px; }
.quick-tags a:hover, .catalog-tags a:hover, .catalog-tags a.is-selected { color: #fff; background: #285563; }
.content-section { padding-top: 42px; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.media-card { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s ease, transform .18s ease; }
.media-card:hover { border-color: #6b583f; transform: translateY(-2px); }
.poster-link { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4.15; background: #242d35; }
.poster-link img { width: 100%; height: 100%; object-fit: cover; }
.poster-quality { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; color: #eaf1f2; background: #244d57e8; border: 1px solid #4a7780; border-radius: 3px; font-size: 10px; }
.media-card__body { padding: 11px 12px 13px; }
.media-card h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.45; }
.media-meta { margin: 0 0 7px; color: var(--teal); font-size: 11px; }
.media-summary { min-height: 4.4em; margin: 0 0 10px; color: #aab4be; font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.media-card .text-link { font-size: 11px; }
.split-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-list { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.mini-list__head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-list__head h3 { margin: 0; font-size: 17px; }
.mini-list__head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.mini-list__head > a { color: var(--gold); font-size: 12px; }
.mini-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid #2a333c; }
.mini-item:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-item img { width: 54px; height: 68px; flex: 0 0 54px; object-fit: cover; background: #27313a; border-radius: 3px; }
.mini-item span { min-width: 0; display: flex; flex-direction: column; }
.mini-item b { font-size: 13px; }
.mini-item small { color: var(--teal); font-size: 10px; }
.mini-item em { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.collection-band { display: grid; grid-template-columns: .82fr 1.18fr; gap: 24px; margin-top: 42px; padding: 25px; background: #1a2229; border: 1px solid #34404a; border-radius: var(--radius); }
.collection-band h2 { margin: 8px 0; font-size: 26px; line-height: 1.35; }
.collection-band__intro p { color: #aab4be; font-size: 13px; }
.collection-band__intro .button { margin-top: 5px; }
.collection-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collection-tile { min-height: 112px; padding: 13px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: #11171d; border: 1px solid #34434d; border-radius: 4px; }
.collection-tile span { color: var(--teal); font-size: 10px; }
.collection-tile strong { margin: 2px 0; font-size: 18px; }
.collection-tile small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.guide-section { padding-top: 42px; padding-bottom: 48px; }
.guide-grid, .explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-grid article, .explain-grid article { padding: 18px; background: #171d23; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-grid article > b { color: var(--amber); font-size: 13px; }
.guide-grid h3, .explain-grid h3 { margin: 8px 0; font-size: 16px; }
.guide-grid p, .explain-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer { padding: 34px 0 16px; background: var(--deep); border-top: 1px solid #28313a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; }
.footer-brand { color: var(--gold); font-size: 22px; font-weight: 800; }
.footer-grid p { max-width: 420px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.footer-grid h2 { margin: 0 0 8px; color: #cbd2d9; font-size: 14px; }
.footer-grid > div:not(:first-child) a { display: block; color: var(--muted); font-size: 12px; line-height: 2; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 13px; color: #77828e; border-top: 1px solid #252d35; font-size: 11px; }
.page-main { min-height: 65vh; padding-top: 20px; padding-bottom: 55px; }
.breadcrumb ol { display: flex; gap: 9px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.breadcrumb li + li::before { content: "/"; margin-right: 9px; color: #59636e; }
.page-intro { padding: 25px 28px; background: linear-gradient(120deg, #1c252d, #151b21); border: 1px solid var(--line); border-radius: var(--radius); }
.page-intro h1 { margin: 7px 0; font-size: 31px; }
.page-intro p { max-width: 850px; margin: 0; color: #adb7c1; }
.page-intro--wide { padding: 32px; }
.catalog-tools { margin-top: 17px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-form--catalog { grid-template-columns: 1.6fr 1fr 1fr auto; }
.catalog-tags { margin-bottom: 0; }
.catalog-tags a { padding: 3px 9px; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 14px; }
.result-heading h2 { margin: 0; font-size: 21px; }
.result-heading small, .result-heading > span { color: var(--muted); font-size: 12px; font-weight: 400; }
.media-grid--catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-explain { margin-top: 42px; }
.catalog-explain > h2 { font-size: 22px; }
.collection-overview { display: grid; grid-template-columns: repeat(3, 1fr); margin: 17px 0 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.collection-overview div { padding: 16px 20px; border-right: 1px solid var(--line); }
.collection-overview div:last-child { border-right: 0; }
.collection-overview strong, .collection-overview span { display: block; }
.collection-overview strong { color: var(--gold); font-size: 17px; }
.collection-overview span { color: var(--muted); font-size: 12px; }
.collection-detail { padding: 24px 0 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.collection-detail__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 17px; }
.collection-detail__head h2 { margin: 5px 0; font-size: 25px; }
.collection-detail__head p { max-width: 780px; margin: 0; color: var(--muted); font-size: 13px; }
.collection-count { flex: 0 0 auto; padding: 6px 10px; color: var(--teal); border: 1px solid #31515a; border-radius: 3px; font-size: 11px; }
.media-grid--small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-grid--small .media-card__body { padding: 9px 10px 11px; }
.media-grid--small .media-summary { min-height: 3.2em; }
.collection-note { margin-top: 30px; padding: 20px; background: var(--panel); border-left: 3px solid var(--amber); }
.collection-note h2 { margin-bottom: 8px; font-size: 19px; }
.collection-note p { margin: 7px 0; color: #adb7c1; font-size: 13px; }
.detail-layout { display: grid; grid-template-columns: 270px 1fr; gap: 30px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-poster { position: relative; align-self: start; }
.detail-poster img { width: 100%; aspect-ratio: 3 / 4.15; object-fit: cover; background: #27313a; border-radius: 4px; }
.detail-poster span { position: absolute; left: 9px; bottom: 9px; padding: 4px 8px; color: white; background: #244d57e8; font-size: 11px; }
.detail-main h1 { margin: 5px 0 8px; font-size: 34px; }
.detail-lead { max-width: 850px; color: #c0c8d0; font-size: 16px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0; background: var(--line); border: 1px solid var(--line); }
.detail-facts div { min-height: 65px; padding: 9px 12px; background: #171e24; }
.detail-facts small, .detail-facts strong { display: block; }
.detail-facts small { color: var(--muted); font-size: 10px; }
.detail-facts strong { margin-top: 3px; font-size: 13px; }
.genre-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 15px 0; }
.play-notice { margin-top: 17px; padding: 13px 15px; background: #292116; border: 1px solid #6b4b2b; border-radius: 4px; }
.play-notice strong { color: var(--gold); }
.play-notice p { margin: 4px 0 0; color: #c7b9a7; font-size: 12px; }
.detail-content { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.detail-description, .episode-panel { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-description h2, .episode-panel h2 { margin: 5px 0 10px; font-size: 20px; }
.detail-description p, .episode-panel > p { color: #b3bdc6; font-size: 13px; }
.episode-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.episode-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #11171d; border: 1px solid #303a44; border-radius: 3px; font-size: 12px; }
.episode-list small { color: var(--muted); }
.related-section { padding-top: 35px; }
.empty-state { margin: 45px auto; max-width: 650px; padding: 45px 25px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state h1, .empty-state h2 { margin: 8px 0; font-size: 27px; }
.empty-state p { margin-bottom: 20px; color: var(--muted); }
.image-unavailable { opacity: .25; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 250px; }
  .media-grid, .media-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-lists { grid-template-columns: 1fr 1fr; }
  .split-lists .mini-list:last-child { grid-column: 1 / -1; }
  .collection-band { grid-template-columns: 1fr; }
  .media-grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 66px; flex-wrap: wrap; padding-block: 9px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; width: 100%; padding: 5px 0 8px; flex-wrap: wrap; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { flex: 1 1 28%; text-align: center; padding: 8px 5px; background: #151b21; }
  .hero { padding-top: 15px; gap: 12px; }
  .hero-copy { min-height: auto; padding: 23px 19px; }
  .hero h1 { font-size: 29px; }
  .hero-lead { font-size: 14px; }
  .hero-index { padding: 15px; }
  .index-grid a { min-height: 75px; }
  .filter-panel { margin-top: 12px; padding: 16px; }
  .filter-form, .filter-form--catalog { grid-template-columns: 1fr 1fr; }
  .filter-form label:first-child { grid-column: 1 / -1; }
  .filter-form button { width: 100%; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 21px; }
  .section-heading p { font-size: 12px; }
  .content-section { padding-top: 30px; }
  .media-grid, .media-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .media-card__body { padding: 9px; }
  .media-card h3 { font-size: 14px; }
  .media-summary { font-size: 11px; }
  .split-lists { grid-template-columns: 1fr; }
  .split-lists .mini-list:last-child { grid-column: auto; }
  .collection-band { margin-top: 28px; padding: 18px; }
  .collection-band h2 { font-size: 22px; }
  .collection-tiles { gap: 8px; }
  .collection-tile { min-height: 104px; padding: 10px; }
  .collection-tile strong { font-size: 15px; }
  .guide-grid, .explain-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .page-main { padding-top: 13px; }
  .page-intro, .page-intro--wide { padding: 20px; }
  .page-intro h1 { font-size: 25px; }
  .collection-overview { grid-template-columns: 1fr; }
  .collection-overview div { border-right: 0; border-bottom: 1px solid var(--line); }
  .collection-overview div:last-child { border-bottom: 0; }
  .collection-detail__head { align-items: flex-start; }
  .collection-detail__head h2 { font-size: 21px; }
  .media-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 112px 1fr; gap: 15px; padding: 14px; }
  .detail-main h1 { font-size: 24px; }
  .detail-lead { font-size: 13px; }
  .detail-facts { grid-template-columns: 1fr 1fr; margin: 12px 0; }
  .detail-facts div { min-height: 56px; padding: 7px; }
  .detail-facts strong { font-size: 11px; }
  .play-notice { padding: 9px; }
  .detail-content { grid-template-columns: 1fr; }
  .episode-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 390px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster { width: 48%; }
  .filter-form, .filter-form--catalog { grid-template-columns: 1fr; }
  .filter-form label:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 组件状态与打印适配：保留页面语义，在不同媒介中提供可读的内容层级。 */
@media print {
  :root { color-scheme: light; }
  body { color: #111; background: #fff; }
  .site-header, .site-footer, .filter-panel, .catalog-tools, .hero-actions, .play-notice { display: none !important; }
  .container { width: 100%; }
  .media-card, .detail-layout, .page-intro { color: #111; background: #fff; border-color: #bbb; break-inside: avoid; }
  .media-summary, .page-intro p, .detail-description p { color: #333; }
  a { text-decoration: underline; }
}
