/* 影视大全：清爽目录型影库样式 */
:root {
  color-scheme: light;
  --ink: #1A242B;
  --muted: #5A6872;
  --brand: #143642;
  --brand-soft: #2B6E7D;
  --night: #0B1920;
  --canvas: #F5F6F8;
  --paper: #FFFFFF;
  --accent: #C85019;
  --line: #DCE2E6;
  --line-dark: #C8D1D7;
  --radius: 5px;
  --container: 1180px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.72; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-soft); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(43,110,125,.35); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--paper); color: var(--brand); border: 1px solid var(--line); }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.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; min-width: 180px; color: var(--brand); }
.brand img { display: block; object-fit: contain; border-radius: 4px; }
.brand strong { display: block; font-size: 20px; line-height: 1.25; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.primary-nav { display: flex; align-items: center; gap: 7px; }
.primary-nav a { padding: 9px 13px; color: #40515A; font-size: 14px; border-radius: 4px; }
.primary-nav a:hover, .primary-nav a.active { color: var(--brand); background: #EAF0F2; }
.menu-toggle { display: none; border: 1px solid var(--line-dark); background: var(--paper); color: var(--brand); border-radius: 4px; padding: 7px 12px; cursor: pointer; }
.intro-band { background: linear-gradient(115deg, #EAF0F2 0%, #F8F9FA 65%, #F1F4F5 100%); border-bottom: 1px solid var(--line); }
.intro-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); align-items: center; gap: 56px; padding-block: 52px 48px; }
.eyebrow { margin: 0 0 8px; color: var(--brand-soft); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.intro-copy h1 { margin: 0; color: var(--brand); font-size: clamp(28px,3.3vw,40px); line-height: 1.28; letter-spacing: -.025em; }
.intro-lead { max-width: 680px; margin: 17px 0 19px; color: #43535C; font-size: 16px; }
.intro-points { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-points span { padding: 4px 9px; border: 1px solid #D0DCE0; border-radius: 4px; background: rgba(255,255,255,.65); color: #3C5A64; font-size: 12px; }
.search-panel { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(20,54,66,.045); }
.search-panel label { display: block; margin-bottom: 10px; color: var(--brand); font-weight: 700; }
.search-row { display: flex; gap: 8px; }
.search-row input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid var(--line-dark); border-radius: 4px; color: var(--ink); background: #FFF; }
.search-panel > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 8px 17px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-weight: 700; }
.button-primary { color: #FFF; background: var(--brand); }
.button-primary:hover { color: #FFF; background: #205262; }
.quick-index { padding-block: 32px 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; color: var(--brand); font-size: 23px; line-height: 1.35; }
.compact-heading { margin-bottom: 14px; }
.heading-note, .section-count { color: var(--muted); font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.category-tile { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s, transform .18s; }
.category-tile:hover { border-color: #A9C0C7; transform: translateY(-2px); }
.category-mark { display: grid; place-items: center; flex: 0 0 40px; height: 40px; color: #FFF; background: var(--brand); border-radius: 4px; font-size: 18px; font-weight: 700; }
.category-tile strong { display: block; color: var(--brand); font-size: 15px; }
.category-tile small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tile-arrow { margin-left: auto; color: var(--brand-soft); font-size: 24px; }
.library-section { padding-block: 35px 8px; }
.section-intro { max-width: 790px; margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.catalog-placeholder { display: flex; align-items: center; gap: 18px; padding: 25px; background: var(--paper); border: 1px dashed #BFCBD0; border-radius: var(--radius); }
.placeholder-icon { display: grid; place-items: center; flex: 0 0 54px; height: 54px; color: var(--brand); background: #EAF0F2; border-radius: 4px; font-size: 24px; font-weight: 700; }
.catalog-placeholder h3 { margin: 0 0 5px; color: var(--brand); font-size: 17px; }
.catalog-placeholder p { margin: 0; color: var(--muted); font-size: 13px; }
.metadata-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metadata-strip div { padding: 14px 16px; background: #FFF; }
.metadata-strip strong, .metadata-strip span { display: block; }
.metadata-strip strong { color: var(--brand); font-size: 13px; }
.metadata-strip span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.series-info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.info-card { min-height: 170px; padding: 19px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.info-number { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.info-card h3 { margin: 6px 0 7px; color: var(--brand); font-size: 17px; }
.info-card p { margin: 0; color: var(--muted); font-size: 13px; }
.edition-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.edition-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.edition-table th, .edition-table td { padding: 13px 16px; border-bottom: 1px solid #E8ECEE; }
.edition-table thead { color: var(--brand); background: #EEF2F4; }
.edition-table tbody th { min-width: 145px; color: var(--brand); font-weight: 700; }
.edition-table tbody tr:last-child th, .edition-table tbody tr:last-child td { border-bottom: 0; }
.edition-table td { color: var(--muted); }
.editorial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.editorial-card { position: relative; min-height: 220px; padding: 19px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.editorial-index { display: inline-block; margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 800; }
.editorial-card h3 { margin: 0 0 8px; color: var(--brand); font-size: 16px; }
.editorial-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.editorial-card details { margin-top: 13px; padding-top: 10px; border-top: 1px solid #E8ECEE; }
.editorial-card summary { color: var(--brand-soft); cursor: pointer; font-size: 12px; font-weight: 700; }
.editorial-card details p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.guide-section { padding-bottom: 8px; }
.guide-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.guide-step { display: flex; gap: 12px; padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-step > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: #FFF; background: var(--brand-soft); border-radius: 4px; font-weight: 700; }
.guide-step h3 { margin: 0 0 5px; color: var(--brand); font-size: 15px; }
.guide-step p { margin: 0; color: var(--muted); font-size: 12px; }
.quality-note { display: flex; gap: 13px; margin-top: 14px; padding: 17px; background: #FDF4EF; border: 1px solid #F0D5C8; border-radius: var(--radius); }
.quality-symbol { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: #FFF; background: var(--accent); border-radius: 50%; font-weight: 800; }
.quality-note h3 { margin: 0 0 4px; color: #873C1C; font-size: 14px; }
.quality-note p { margin: 0; color: #765446; font-size: 12px; }
.faq-section { padding-block: 38px 54px; }
.faq-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.faq-item { padding: 15px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { color: var(--brand); cursor: pointer; font-weight: 700; font-size: 14px; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.site-footer { color: #D6E0E3; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-block: 36px 28px; }
.brand-footer { color: #FFF; }
.brand-footer small { color: #A8BBC1; }
.footer-brand > p { max-width: 440px; margin: 13px 0 0; color: #A8BBC1; font-size: 12px; }
.footer-grid h2 { margin: 2px 0 10px; color: #FFF; font-size: 14px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 5px 0; color: #B6C5C9; font-size: 12px; }
.footer-grid a:hover { color: #FFF; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 13px 16px; border-top: 1px solid rgba(255,255,255,.13); color: #91A5AB; font-size: 11px; }
.search-result-note { margin: 0 0 12px; padding: 10px 13px; background: #EAF0F2; color: var(--muted); border-left: 3px solid var(--brand-soft); font-size: 13px; }
.result-list { display: grid; gap: 10px; }
.result-card { padding: 16px; background: #FFF; border: 1px solid var(--line); border-radius: var(--radius); }
.result-card h3 { margin: 0 0 5px; color: var(--brand); font-size: 16px; }
.result-card p { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { padding: 2px 7px; color: #8E421F; background: #FDF0E9; border-radius: 3px; font-size: 11px; }
.empty-state { padding: 22px; background: #FFF; border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state strong { color: var(--brand); }
.empty-state p { margin: 5px 0 8px; color: var(--muted); font-size: 13px; }
.text-link { color: var(--brand-soft); font-weight: 700; font-size: 13px; }
.error-page { min-height: 55vh; display: grid; justify-items: center; align-content: center; text-align: center; }
.error-code { color: var(--accent); font-size: clamp(64px,12vw,110px); font-weight: 800; line-height: 1; }
.error-page h1 { margin: 15px 0 4px; color: var(--brand); font-size: 26px; }
.error-page p { margin: 0 0 20px; color: var(--muted); }
@media (max-width: 900px) {
  .intro-layout { gap: 28px; }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .editorial-grid { grid-template-columns: repeat(2,1fr); }
  .primary-nav { gap: 0; }
  .primary-nav a { padding-inline: 9px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 8px; padding-block: 9px; }
  .brand { min-width: 0; }
  .brand strong { font-size: 18px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; width: 100%; padding: 5px 0 7px; flex-wrap: wrap; border-top: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { flex: 1 1 30%; text-align: center; }
  .intro-layout { grid-template-columns: 1fr; gap: 23px; padding-block: 34px 30px; }
  .intro-copy h1 { font-size: 29px; }
  .intro-lead { font-size: 14px; }
  .search-panel { padding: 16px; }
  .search-row { flex-direction: column; }
  .search-row .button { width: 100%; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 20px; }
  .heading-note { display: none; }
  .category-grid { gap: 8px; }
  .category-tile { min-height: 82px; gap: 8px; padding: 9px; }
  .category-mark { flex-basis: 34px; height: 34px; }
  .category-tile small { font-size: 10px; }
  .library-section { padding-top: 28px; }
  .series-info-grid, .guide-steps { grid-template-columns: 1fr; }
  .editorial-grid, .faq-list { grid-template-columns: 1fr; }
  .editorial-card { min-height: 0; }
  .metadata-strip { grid-template-columns: 1fr; }
  .metadata-strip div { padding: 10px 13px; }
  .catalog-placeholder { align-items: flex-start; padding: 17px; }
  .placeholder-icon { flex-basis: 42px; height: 42px; }
  .edition-table { min-width: 620px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 3px; }
}
@media (max-width: 380px) {
  .category-grid { grid-template-columns: 1fr; }
  .primary-nav a { flex-basis: 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* 细节状态与长内容阅读优化 */
::selection { color: #FFF; background: var(--brand-soft); }
img { max-width: 100%; }
section[id], main[id] { scroll-margin-top: 92px; }
.primary-nav a:focus-visible, .category-tile:focus-visible { outline-offset: 2px; }
.category-tile:focus-visible { border-color: var(--brand-soft); }
.search-row input::placeholder { color: #87949B; opacity: 1; }
.search-row input:hover { border-color: #9AAEB6; }
.search-row input:focus { border-color: var(--brand-soft); outline: 3px solid rgba(43,110,125,.12); }
.button:active { transform: translateY(1px); }
.section-count { flex: 0 0 auto; padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; background: #FFF; }
.catalog-placeholder p, .section-intro, .editorial-card > p, .info-card p { text-wrap: pretty; }
.faq-item[open] { border-color: #B7C9CF; }
.faq-item[open] summary { color: var(--brand-soft); }
.editorial-card details[open] { border-top-color: #C7D7DC; }
.edition-table tbody tr:hover { background: #FAFBFC; }
.footer-grid a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-grid a:focus-visible { outline-color: rgba(255,255,255,.55); }
.error-page .button { min-width: 170px; }
@media (min-width: 1200px) {
  .intro-layout { min-height: 285px; }
  .quick-index { padding-top: 36px; }
  .library-section { padding-top: 39px; }
}
@media (max-width: 900px) and (min-width: 681px) {
  .header-inner { gap: 14px; }
  .brand { min-width: 150px; }
  .brand strong { font-size: 18px; }
  .primary-nav a { font-size: 12px; padding: 8px 7px; }
  .intro-layout { grid-template-columns: 1fr .9fr; }
  .intro-copy h1 { font-size: 30px; }
  .editorial-card { min-height: 245px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 78px; }
  .site-header { position: sticky; }
  .intro-points { gap: 6px; }
  .intro-points span { font-size: 11px; }
  .quick-index { padding-top: 25px; }
  .section-intro { font-size: 13px; }
  .section-heading { margin-bottom: 14px; }
  .catalog-placeholder p { font-size: 12px; }
  .guide-step { padding: 14px; }
  .quality-note { align-items: flex-start; padding: 14px; }
  .faq-section { padding-block: 29px 38px; }
  .footer-grid { padding-top: 29px; }
}
@media (max-width: 420px) {
  .brand small { font-size: 10px; }
  .menu-toggle { padding: 6px 9px; font-size: 12px; }
  .intro-copy h1 { font-size: 26px; }
  .intro-lead { font-size: 13px; }
  .category-tile { min-height: 74px; }
  .category-tile small { line-height: 1.35; }
  .section-heading h2 { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media print {
  .site-header, .site-footer, .search-panel, .menu-toggle, .skip-link { display: none !important; }
  body { color: #000; background: #FFF; }
  .container { width: 100%; }
  .intro-band { background: #FFF; }
  .library-section, .faq-section { break-inside: avoid; }
  a { text-decoration: underline; }
}


/* 内容密度、触控尺寸与不同视口下的可读性 */
::selection { color: #FFF; background: var(--brand-soft); }
img { max-width: 100%; }
section[id], main[id] { scroll-margin-top: 92px; }
.primary-nav a:focus-visible, .category-tile:focus-visible { outline-offset: 2px; }
.category-tile:focus-visible { border-color: var(--brand-soft); }
.search-row input::placeholder { color: #87949B; opacity: 1; }
.search-row input:hover { border-color: #9AAEB6; }
.search-row input:focus { border-color: var(--brand-soft); outline: 3px solid rgba(43,110,125,.12); }
.button:active { transform: translateY(1px); }
.section-count { flex: 0 0 auto; padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; background: #FFF; }
.catalog-placeholder p, .section-intro, .editorial-card > p, .info-card p { text-wrap: pretty; }
.faq-item[open] { border-color: #B7C9CF; }
.faq-item[open] summary { color: var(--brand-soft); }
.editorial-card details[open] { border-top-color: #C7D7DC; }
.edition-table tbody tr:hover { background: #FAFBFC; }
.footer-grid a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-grid a:focus-visible { outline-color: rgba(255,255,255,.55); }
.error-page .button { min-width: 170px; }
@media (hover: hover) and (pointer: fine) {
  .faq-item:hover, .info-card:hover, .editorial-card:hover { border-color: #B7C8CE; }
  .footer-grid a:hover { text-decoration: underline; }
}
@media (hover: none) {
  .category-tile:hover { transform: none; }
}
@media (min-width: 1200px) {
  .intro-layout { min-height: 285px; }
  .quick-index { padding-top: 36px; }
  .library-section { padding-top: 39px; }
}
@media (min-width: 681px) and (max-width: 1020px) {
  .intro-layout { grid-template-columns: minmax(0,1fr) minmax(290px,.85fr); }
  .intro-copy h1 { max-width: 520px; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 680px) {
  .section-count { margin-top: 4px; }
  .edition-table-wrap { margin-inline: -1px; }
  .edition-table th, .edition-table td { padding: 11px 12px; }
  .guide-step > span { min-height: 30px; }
  .quality-note p { line-height: 1.65; }
  .footer-grid li { margin-block: 8px; }
  .footer-grid a { display: inline-block; padding-block: 2px; }
}
@media (max-width: 420px) {
  .brand small { font-size: 10px; }
  .menu-toggle { padding: 6px 9px; font-size: 12px; }
  .intro-copy h1 { font-size: 26px; }
  .intro-lead { font-size: 13px; }
  .category-tile { min-height: 74px; }
  .category-tile small { line-height: 1.35; }
  .section-heading h2 { font-size: 18px; }
}
@media (max-width: 340px) {
  .container { width: calc(100% - 22px); }
  .brand { gap: 7px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 16px; }
  .intro-copy h1 { font-size: 24px; }
  .intro-points span { font-size: 10px; }
  .category-tile small { font-size: 10px; }
}
@media print {
  .site-header, .site-footer, .search-panel, .menu-toggle, .skip-link { display: none !important; }
  body { color: #000; background: #FFF; }
  .container { width: 100%; }
  .intro-band { background: #FFF; }
  .library-section, .faq-section { break-inside: avoid; }
  a { text-decoration: underline; }
}
