/* 影视大全：清爽目录型片库界面 */
:root {
  --brand: #143642;
  --brand-soft: #2B6E7D;
  --ink-dark: #0B1920;
  --canvas: #F5F6F8;
  --paper: #FFFFFF;
  --text: #1A242B;
  --muted: #5A6872;
  --accent: #C85019;
  --line: #DCE2E6;
  --line-strong: #C9D2D8;
  --radius: 6px;
  --container: 1220px;
  --shadow-soft: 0 5px 18px rgba(20, 54, 66, .055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-soft); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(200, 80, 25, .42); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 9px 14px; color: #fff; background: var(--brand); border-radius: 4px;
}
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1320px, calc(100% - 48px)); min-height: 76px; margin: auto;
  display: flex; align-items: center; gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 5px; }
.brand span { display: grid; line-height: 1.35; }
.brand strong { color: var(--brand); font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.primary-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.primary-nav a { color: #40515A; font-size: 14px; font-weight: 600; padding: 26px 0 23px; border-bottom: 3px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--brand); border-color: var(--accent); }
.header-action {
  flex: 0 0 auto; padding: 9px 15px; color: #fff; background: var(--brand);
  border: 1px solid var(--brand); border-radius: 4px; font-size: 13px; font-weight: 700;
}
.header-action:hover { color: #fff; background: var(--brand-soft); }
.nav-toggle { display: none; }
.intro-shell {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
  gap: 34px; align-items: stretch; padding-top: 36px; padding-bottom: 25px;
}
.intro-copy {
  min-height: 238px; padding: 30px 34px; background: var(--paper);
  border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius);
}
.eyebrow {
  margin: 0 0 8px; color: var(--brand-soft); font-size: 12px; font-weight: 800;
  letter-spacing: .08em;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
.intro-copy h1 { margin: 0; color: var(--brand); font-size: clamp(27px, 3vw, 38px); line-height: 1.3; letter-spacing: -.035em; }
.intro-lead { max-width: 760px; margin: 13px 0 18px; color: var(--muted); font-size: 15px; }
.intro-points { display: flex; flex-wrap: wrap; gap: 9px; }
.intro-points span {
  padding: 4px 9px; color: var(--brand); background: #EEF4F5;
  border: 1px solid #D7E4E7; border-radius: 4px; font-size: 12px; font-weight: 700;
}
.intro-side {
  padding: 24px; background: var(--brand); color: #fff; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: flex-start;
}
.intro-side-icon {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 15px;
  color: var(--brand); background: #fff; border-radius: 5px; font-size: 22px; font-weight: 900;
}
.intro-side strong { font-size: 18px; }
.intro-side p { margin: 7px 0 15px; color: rgba(255,255,255,.78); font-size: 13px; }
.text-link { margin-top: auto; color: #fff; font-size: 13px; font-weight: 700; }
.text-link:hover { color: #FFD4BE; }
.filter-panel {
  padding: 20px 24px 17px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 19px; }
.section-heading h2 { margin: 0; color: var(--brand); font-size: 23px; line-height: 1.35; font-weight: 800; }
.compact-heading { align-items: center; margin-bottom: 14px; }
.compact-heading h2 { font-size: 19px; }
.muted-text, .result-count { color: var(--muted); font-size: 12px; }
.search-form { display: flex; gap: 9px; }
.search-form input, .search-form select {
  min-width: 0; height: 44px; padding: 0 13px; color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 4px;
}
.search-form input { flex: 1; }
.search-form select { width: 175px; }
.search-form input::placeholder { color: #8A969D; }
.button {
  display: inline-flex; min-height: 42px; align-items: center; justify-content: center;
  padding: 9px 17px; border: 1px solid transparent; border-radius: 4px;
  cursor: pointer; font-size: 13px; font-weight: 800; transition: background .18s, border-color .18s, transform .18s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { color: #fff; background: #A94012; }
.button-light { color: var(--brand); background: #F3F6F7; border-color: var(--line); }
.button-dark { color: #fff; background: var(--brand); border-color: var(--brand); }
.button-dark:hover { color: #fff; background: var(--brand-soft); }
.quick-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.quick-filters > span { margin-right: 3px; font-weight: 700; }
.quick-filters a { padding: 3px 9px; color: #4D626D; background: #F4F7F8; border: 1px solid #E5EAED; border-radius: 3px; }
.quick-filters a:hover { color: var(--brand); border-color: var(--brand-soft); }
.catalog-section, .special-section { padding-top: 34px; }
.section-desc { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.section-more { flex: 0 0 auto; padding-bottom: 4px; color: var(--brand-soft); font-size: 13px; font-weight: 800; }
.section-more:hover { color: var(--accent); }
.poster-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
}
.movie-card {
  min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line);
  border-radius: 5px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.movie-card:hover { border-color: #AABCC3; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.poster-link { position: relative; display: block; overflow: hidden; background: #E7ECEF; aspect-ratio: 2 / 3; }
.poster-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.movie-card:hover .poster-link img { transform: scale(1.025); }
.poster-status {
  position: absolute; left: 7px; top: 7px; padding: 3px 6px; color: #fff;
  background: rgba(20,54,66,.92); border-radius: 3px; font-size: 10px; font-weight: 800;
}
.movie-info { padding: 10px 10px 11px; }
.movie-meta { display: flex; justify-content: space-between; gap: 6px; color: #829098; font-size: 10px; }
.movie-info h3 { margin: 4px 0 2px; color: var(--text); font-size: 15px; line-height: 1.45; font-weight: 800; }
.movie-info h3 a:hover { color: var(--accent); }
.movie-genre { margin: 0 0 6px; color: var(--brand-soft); font-size: 11px; font-weight: 700; }
.movie-summary {
  display: -webkit-box; min-height: 61px; margin: 0 0 8px; overflow: hidden;
  color: var(--muted); font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 4px; }
.badge {
  display: inline-block; padding: 2px 5px; color: #9B461D; background: #FFF1E9;
  border: 1px solid #F6D8C8; border-radius: 3px; font-size: 10px; line-height: 1.5; font-weight: 700;
}
.card-note { margin: 7px 0 0; color: #8B969C; font-size: 10px; }
.special-section { padding-bottom: 7px; }
.special-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.special-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 13px; min-width: 0;
  padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px;
}
.special-card img { width: 112px; height: 150px; object-fit: cover; border-radius: 3px; background: #E8ECEF; }
.special-type { color: var(--accent); font-size: 10px; font-weight: 800; }
.special-card h3 { margin: 3px 0 5px; color: var(--brand); font-size: 15px; line-height: 1.4; }
.special-card p { display: -webkit-box; margin: 0 0 7px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.special-card a { color: var(--brand-soft); font-size: 11px; font-weight: 800; }
.editorial-section {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
  gap: 25px; margin-top: 34px; padding: 25px; background: #fff;
  border: 1px solid var(--line); border-radius: 5px;
}
.editorial-main h2 { max-width: 680px; margin: 0 0 12px; color: var(--brand); font-size: 23px; line-height: 1.45; }
.editorial-main p:not(.eyebrow) { margin: 0 0 10px; color: #53616A; font-size: 13px; line-height: 1.9; }
.editorial-aside { padding: 18px; background: #F3F6F7; border: 1px solid #E5EAED; border-radius: 4px; }
.editorial-aside h3 { margin: 0 0 11px; color: var(--brand); font-size: 16px; }
.editorial-aside ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.editorial-aside li { display: grid; gap: 1px; padding-bottom: 9px; border-bottom: 1px solid #DCE4E7; }
.editorial-aside li:last-child { padding-bottom: 0; border: 0; }
.editorial-aside strong { color: var(--text); font-size: 12px; }
.editorial-aside span { color: var(--muted); font-size: 11px; }
.access-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 32px; margin-bottom: 42px; padding: 22px 25px;
  background: #EAF0F2; border: 1px solid #D5E0E4; border-radius: 5px;
}
.access-strip h2 { margin: 0 0 4px; color: var(--brand); font-size: 19px; }
.access-strip p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.access-strip .button { flex: 0 0 auto; }
.empty-state { padding: 45px 20px; text-align: center; background: #fff; border: 1px dashed var(--line-strong); border-radius: 5px; }
.empty-state strong { color: var(--brand); font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state .button { margin-top: 8px; }
.site-footer { color: #D8E1E4; background: var(--ink-dark); }
.footer-inner { width: min(var(--container), calc(100% - 48px)); margin: auto; padding: 30px 0 22px; }
.footer-brand strong { color: #fff; font-size: 20px; }
.footer-brand p { margin: 5px 0 15px; color: #AEBCC2; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 19px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-links a { color: #E5ECEE; font-size: 12px; }
.footer-note { max-width: 850px; margin: 14px 0 7px; color: #AEBCC2; font-size: 11px; }
.copyright { margin: 0; color: #7F929B; font-size: 10px; }
.inner-page { padding-top: 25px; padding-bottom: 48px; }
.breadcrumbs { display: flex; gap: 9px; color: #87939A; font-size: 12px; }
.breadcrumbs a { color: var(--brand-soft); }
.page-intro { max-width: 850px; padding: 25px 0 28px; }
.page-intro h1 { margin: 0 0 10px; color: var(--brand); font-size: clamp(27px, 3vw, 36px); }
.page-intro > p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.guide-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.guide-number { display: inline-grid; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--brand); border-radius: 4px; font-size: 13px; font-weight: 800; }
.guide-card h2 { margin: 13px 0 8px; color: var(--brand); font-size: 19px; }
.guide-card p, .guide-card li { color: var(--muted); font-size: 13px; line-height: 1.85; }
.guide-card p { margin: 0; }
.guide-card ul { margin: 12px 0 0; padding-left: 18px; }
.guide-card li { margin: 4px 0; }
.legal-note { margin-top: 22px; padding: 23px 25px; background: #FFF; border: 1px solid #EAD8CC; border-left: 4px solid var(--accent); border-radius: 5px; }
.legal-note h2 { margin: 0 0 7px; color: var(--brand); font-size: 18px; }
.legal-note p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.not-found { min-height: 58vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found-code { color: #DCE5E8; font-size: clamp(72px, 14vw, 150px); font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.not-found h1 { margin: 15px 0 5px; color: var(--brand); font-size: 27px; }
.not-found p { max-width: 560px; color: var(--muted); font-size: 14px; }
.not-found .button { margin-top: 12px; }
@media (max-width: 1100px) {
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .special-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { gap: 20px; }
  .primary-nav { gap: 18px; }
}
@media (max-width: 760px) {
  .container, .header-inner, .footer-inner { width: min(100% - 30px, var(--container)); }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 10px; padding: 9px 0; }
  .brand img { width: 37px; height: 37px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 10px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    padding: 7px 10px; color: var(--brand); background: #F2F6F7; border: 1px solid var(--line);
    border-radius: 4px; font-size: 12px; font-weight: 700;
  }
  .header-action { display: none; }
  .primary-nav {
    display: none; order: 3; width: 100%; margin: 0; padding: 7px 0 3px;
    flex-wrap: wrap; gap: 0 18px; border-top: 1px solid var(--line);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 9px 0; border-bottom-width: 2px; }
  .intro-shell { grid-template-columns: 1fr; gap: 12px; padding-top: 18px; }
  .intro-copy { min-height: 0; padding: 23px 20px; }
  .intro-side { padding: 19px 20px; }
  .intro-side-icon { margin-bottom: 8px; }
  .filter-panel { padding: 17px 15px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 20px; }
  .muted-text { display: none; }
  .search-form { display: grid; grid-template-columns: 1fr 1fr; }
  .search-form input { grid-column: 1 / -1; }
  .search-form select { width: 100%; }
  .search-form .button { padding-inline: 10px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .movie-info { padding: 8px; }
  .movie-info h3 { font-size: 13px; }
  .movie-summary { min-height: 0; font-size: 10px; }
  .special-grid { grid-template-columns: 1fr; }
  .special-card { grid-template-columns: 96px minmax(0, 1fr); }
  .special-card img { width: 96px; height: 132px; }
  .editorial-section { grid-template-columns: 1fr; gap: 15px; padding: 18px; }
  .editorial-main h2 { font-size: 20px; }
  .access-strip { align-items: flex-start; flex-direction: column; padding: 19px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-card { padding: 19px; }
}
@media (max-width: 420px) {
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .section-heading { gap: 8px; }
  .section-more { max-width: 90px; text-align: right; font-size: 11px; }
  .quick-filters { gap: 6px; }
  .quick-filters > span { width: 100%; }
  .intro-copy h1 { font-size: 26px; }
  .special-card p { -webkit-line-clamp: 3; }
  .footer-links { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* 内容卡片的细节状态与桌面端精细排版 */
.movie-card:focus-within { border-color: var(--brand-soft); box-shadow: 0 0 0 2px rgba(43,110,125,.12); }
.poster-link:focus-visible { outline-offset: -4px; }
.movie-info .movie-meta span:first-child { color: #53656E; font-weight: 700; }
.movie-info .movie-meta span:last-child { text-align: right; }
.badge-row:empty { display: none; }
.special-card:focus-within { border-color: var(--brand-soft); }
.special-card a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.section-heading > div { min-width: 0; }
.section-heading .eyebrow { margin-bottom: 6px; }
.filter-panel .section-heading { margin-bottom: 15px; }
.search-form input:focus, .search-form select:focus {
  border-color: var(--brand-soft); outline: 3px solid rgba(43,110,125,.14); outline-offset: 0;
}
.search-form button { white-space: nowrap; }
.quick-filters a { transition: color .16s, border-color .16s, background .16s; }
.quick-filters a:focus-visible { outline-offset: 1px; }
.editorial-aside li strong { letter-spacing: .01em; }
.access-strip .button { white-space: nowrap; }
.footer-links a:hover { color: #FFC5A7; }
.breadcrumbs span:last-child { color: var(--text); }
.guide-card { box-shadow: 0 3px 13px rgba(20,54,66,.035); }
.guide-card li::marker { color: var(--accent); }
.legal-note .button { min-width: 150px; }
.not-found .button { min-width: 140px; }
@media (min-width: 1400px) {
  :root { --container: 1280px; }
  .poster-grid { gap: 18px; }
  .movie-info { padding: 11px 12px 12px; }
  .movie-info h3 { font-size: 16px; }
  .movie-summary { font-size: 12px; }
  .intro-shell { padding-top: 42px; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .header-inner { width: calc(100% - 36px); }
  .brand small { display: none; }
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: 13px; }
  .header-action { padding-inline: 11px; font-size: 12px; }
  .intro-shell { grid-template-columns: minmax(0, 1.35fr) minmax(220px, .75fr); gap: 18px; }
  .intro-copy { padding: 25px; }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .special-card { grid-template-columns: 90px minmax(0,1fr); }
  .special-card img { width: 90px; height: 125px; }
}
@media (max-width: 600px) {
  .intro-points { gap: 6px; }
  .intro-points span { font-size: 11px; }
  .search-form { gap: 7px; }
  .search-form input, .search-form select { height: 42px; font-size: 13px; }
  .search-form .button { min-height: 42px; font-size: 12px; }
  .catalog-section, .special-section { padding-top: 27px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading h2 { font-size: 18px; }
  .section-desc { max-width: 330px; font-size: 12px; }
  .movie-info .movie-meta { font-size: 9px; }
  .movie-info h3 { font-size: 12px; }
  .movie-genre { font-size: 10px; }
  .badge { font-size: 9px; }
  .card-note { font-size: 9px; }
  .editorial-section { margin-top: 26px; }
  .editorial-main p:not(.eyebrow) { font-size: 12px; }
  .access-strip { margin-top: 25px; margin-bottom: 30px; }
  .access-strip h2 { font-size: 17px; }
  .footer-inner { padding-top: 24px; }
}
@media (max-width: 360px) {
  .container, .header-inner, .footer-inner { width: calc(100% - 22px); }
  .brand { gap: 8px; }
  .brand img { width: 33px; height: 33px; }
  .brand strong { font-size: 16px; }
  .nav-toggle { padding: 6px 8px; font-size: 11px; }
  .intro-copy { padding: 19px 15px; }
  .intro-copy h1 { font-size: 23px; }
  .intro-lead { font-size: 13px; }
  .poster-grid { gap: 7px; }
  .movie-info { padding: 7px; }
  .movie-info h3 { font-size: 11px; }
  .special-card { grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding: 8px; }
  .special-card img { width: 82px; height: 116px; }
  .special-card h3 { font-size: 13px; }
}
@media print {
  body { color: #000; background: #fff; }
  .site-header, .site-footer, .nav-toggle, .header-action, .search-form,
  .quick-filters, .section-more, .access-strip .button { display: none !important; }
  .container { width: 100%; }
  .intro-shell { display: block; padding: 0 0 16px; }
  .intro-side { display: none; }
  .intro-copy, .filter-panel, .movie-card, .special-card, .editorial-section {
    box-shadow: none; break-inside: avoid;
  }
  .poster-grid { grid-template-columns: repeat(4, 1fr); }
  .movie-summary { display: block; }
  a { text-decoration: none; }
}
