/* 影视大全：清爽目录型影库视觉系统 */
:root {
  --ink: #143642;
  --blue: #2B6E7D;
  --night: #0B1920;
  --canvas: #F5F6F8;
  --paper: #FFFFFF;
  --text: #1A242B;
  --muted: #5A6872;
  --accent: #C85019;
  --line: #DCE2E6;
  --soft-line: #E9EDF0;
  --radius: 5px;
  --container: 1200px;
  --shadow: 0 8px 24px rgba(20, 54, 66, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 8px 12px; background: white; }
.skip-link:focus { left: 8px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 23px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 14px; font-weight: 700; padding: 26px 0; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; background: white; color: var(--ink); }
.intro-band { background: linear-gradient(115deg, #fff 0%, #F4F7F8 72%, #EAF0F2 100%); border-bottom: 1px solid var(--line); }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 50px; align-items: center; padding-top: 38px; padding-bottom: 36px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; color: var(--ink); font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: -.025em; }
h2 { margin-bottom: 0; color: var(--ink); font-size: 23px; line-height: 1.4; }
h3 { color: var(--ink); line-height: 1.4; }
.intro-lead { max-width: 760px; margin-bottom: 17px; color: #43535C; font-size: 16px; }
.intro-points { display: flex; flex-wrap: wrap; gap: 9px; }
.intro-points span { padding: 4px 10px; border: 1px solid #D5E0E3; border-radius: 4px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.intro-note { padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: rgba(255,255,255,.88); }
.intro-note strong { color: var(--ink); }
.intro-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.filter-panel { position: relative; margin-top: 24px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.compact-heading { align-items: center; margin-bottom: 15px; }
.compact-heading h2 { font-size: 20px; }
.result-count { color: var(--muted); font-size: 13px; }
.filter-form { display: grid; grid-template-columns: minmax(220px, 1.7fr) minmax(140px, .8fr) minmax(140px, .8fr) auto auto; align-items: end; gap: 12px; }
.filter-form label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-form input, .filter-form select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #CDD6DB; border-radius: 4px; outline: none; background: #fff; color: var(--text); }
.filter-form input:focus, .filter-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,110,125,.12); }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 8px 17px; border: 1px solid transparent; border-radius: 4px; font-weight: 800; font-size: 13px; transition: background .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #A94114; color: #fff; }
.button-secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.reset-link { padding: 9px 2px; color: var(--muted); font-size: 13px; }
.quick-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--soft-line); }
.quick-filters a { padding: 3px 10px; border: 1px solid var(--soft-line); border-radius: 3px; color: var(--blue); font-size: 12px; }
.content-section { margin-top: 34px; }
.section-description { max-width: 560px; margin: 0; color: var(--muted); font-size: 13px; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.movie-card { min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease; }
.movie-card:hover { border-color: #B9C9CF; box-shadow: var(--shadow); }
.poster-link { position: relative; display: block; overflow: hidden; align-self: start; border-radius: 4px; background: #E6EAED; aspect-ratio: 2 / 3; }
.poster { width: 100%; height: 100%; object-fit: cover; }
.poster-badge { position: absolute; top: 7px; left: 0; padding: 3px 7px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; }
.movie-card-body { min-width: 0; }
.movie-card h3 { margin: 1px 0 5px; font-size: 15px; }
.movie-card h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.movie-meta { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.movie-summary { display: -webkit-box; overflow: hidden; margin: 0 0 9px; color: #52616A; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tag-row, .detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-block; padding: 2px 6px; border: 1px solid #E8D4C9; border-radius: 3px; background: #FFF8F4; color: #994015; font-size: 10px; font-weight: 700; line-height: 1.5; }
.empty-state { padding: 42px 20px; border: 1px dashed #C9D2D7; border-radius: var(--radius); background: #fff; text-align: center; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { position: relative; padding: 22px 20px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.category-number { color: #C3D1D5; font-size: 25px; font-weight: 900; }
.category-card h3 { margin: 5px 0 8px; font-size: 18px; }
.category-card p { min-height: 72px; margin-bottom: 13px; color: var(--muted); font-size: 13px; }
.category-card a { color: var(--accent); font-size: 13px; font-weight: 800; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.collection-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.collection-card h3 { margin-bottom: 7px; font-size: 17px; }
.collection-card p { margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.collection-card ul { margin: 0; padding: 10px 0 0; border-top: 1px solid var(--soft-line); list-style: none; }
.collection-card li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 12px; }
.collection-card li span { color: var(--muted); text-align: right; }
.viewing-info { display: grid; grid-template-columns: 1.2fr 1fr; gap: 45px; align-items: center; margin-bottom: 40px; padding: 25px 28px; border: 1px solid #D5E0E3; border-radius: var(--radius); background: #EAF0F2; }
.viewing-copy h2 { margin-bottom: 10px; }
.viewing-copy p:last-child { margin-bottom: 0; color: #43535C; font-size: 14px; }
.viewing-list { display: grid; gap: 10px; }
.viewing-list div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #D2DDE1; font-size: 12px; }
.viewing-list strong { color: var(--ink); }
.viewing-list span { color: var(--muted); }
.site-footer { margin-top: 50px; padding: 34px 0 16px; background: var(--night); color: #D5E0E3; }
.footer-grid { display: grid; grid-template-columns: 1fr .65fr 1.25fr; gap: 45px; }
.footer-brand { color: #fff; font-size: 21px; font-weight: 800; }
.site-footer p { max-width: 480px; margin: 9px 0 0; color: #AAB9BF; font-size: 12px; }
.site-footer h2 { margin-bottom: 9px; color: #fff; font-size: 14px; }
.site-footer a:not(.footer-brand) { display: block; margin: 5px 0; color: #C7D4D8; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 13px; border-top: 1px solid #2B4149; color: #91A4AB; font-size: 11px; }
.breadcrumb { padding: 20px 0; color: var(--muted); font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "／"; margin-left: 8px; color: #A8B2B7; }
.breadcrumb a { color: var(--blue); }
.detail-page { padding-bottom: 10px; }
.detail-hero { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 35px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-poster-wrap { position: relative; align-self: start; overflow: hidden; border-radius: 4px; background: #E6EAED; }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.detail-copy h1 { margin-bottom: 12px; }
.detail-lead { max-width: 780px; color: #4E5E67; font-size: 15px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; margin: 20px 0; padding: 17px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.facts-grid div { min-width: 0; }
.facts-grid dt { color: var(--muted); font-size: 11px; }
.facts-grid dd { margin: 2px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.detail-summary { margin: 0; color: #46565F; font-size: 13px; }
.player-section, .detail-description { margin-top: 28px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.player-frame { overflow: hidden; background: var(--night); }
.player-frame video { display: block; width: 100%; max-height: 560px; margin: auto; }
.player-unavailable { display: flex; align-items: center; gap: 18px; min-height: 145px; padding: 25px; background: var(--night); color: #fff; }
.play-symbol { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; border: 1px solid #698087; border-radius: 50%; color: #F2A06F; font-size: 19px; }
.player-unavailable h3 { margin-bottom: 6px; color: #fff; font-size: 17px; }
.player-unavailable p { margin: 0; color: #B8C7CC; font-size: 13px; }
.notice-text { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.detail-description { color: #43535C; }
.detail-description h2 { margin-bottom: 10px; }
.detail-description h3 { margin: 20px 0 6px; font-size: 16px; }
.detail-description p { max-width: 900px; font-size: 14px; }
.related-section { margin-bottom: 45px; }
.error-page { min-height: 400px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-page p:not(.eyebrow) { max-width: 600px; color: var(--muted); }
:focus-visible { outline: 3px solid rgba(200,80,25,.55); outline-offset: 3px; }
@media (max-width: 1050px) {
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-form { grid-template-columns: 1.4fr 1fr 1fr auto; }
  .reset-link { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .brand { font-size: 20px; }
  .brand img { width: 36px; height: 36px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 8px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 9px 4px; border-bottom: 1px solid var(--soft-line); }
  .intro-layout { grid-template-columns: 1fr; gap: 18px; padding-block: 27px; }
  .intro-note { max-width: none; }
  .filter-panel { padding: 18px 15px; }
  .filter-form { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .filter-form .button { grid-column: 1 / -1; }
  .reset-link { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .movie-grid { gap: 10px; }
  .movie-card { grid-template-columns: 88px minmax(0, 1fr); gap: 9px; padding: 7px; }
  .movie-card h3 { font-size: 13px; }
  .movie-summary { -webkit-line-clamp: 2; font-size: 11px; }
  .category-grid, .collection-grid { grid-template-columns: 1fr; }
  .category-card p { min-height: 0; }
  .viewing-info { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .detail-hero { grid-template-columns: 130px minmax(0, 1fr); gap: 17px; padding: 14px; }
  .detail-copy h1 { font-size: 25px; }
  .detail-lead { font-size: 13px; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .player-section, .detail-description { padding: 16px; }
}
@media (max-width: 430px) {
  .movie-grid { grid-template-columns: 1fr; }
  .movie-card { grid-template-columns: 104px minmax(0, 1fr); }
  .filter-form { grid-template-columns: 1fr; }
  .search-field, .filter-form .button, .reset-link { grid-column: 1; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-poster-wrap { width: min(62%, 210px); }
  .detail-copy h1 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .viewing-list div { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* 补充的目录交互、键盘状态与内容展示细节 */
.brand:focus-visible,
.main-nav a:focus-visible,
.quick-filters a:focus-visible,
.collection-card a:focus-visible,
.category-card a:focus-visible,
.movie-card a:focus-visible {
  outline: 3px solid rgba(200, 80, 25, .48);
  outline-offset: 3px;
  border-radius: 3px;
}
.site-header { position: relative; z-index: 20; }
.header-inner { min-width: 0; }
.main-nav a { white-space: nowrap; transition: color .16s ease, border-color .16s ease; }
.nav-toggle[aria-expanded="true"] { border-color: var(--blue); background: #edf4f5; }
.intro-points span { transition: border-color .16s ease, background .16s ease; }
.intro-points span:hover { border-color: var(--blue); background: #f4f8f9; }
.filter-panel { scroll-margin-top: 18px; }
.filter-form input::placeholder { color: #89969c; opacity: 1; }
.filter-form select { appearance: auto; }
.filter-form .button { white-space: nowrap; }
.quick-filters a { transition: color .16s ease, border-color .16s ease, background .16s ease; }
.quick-filters a:hover { border-color: var(--blue); background: #f0f6f7; color: var(--ink); }
.result-count { white-space: nowrap; }
.movie-card { align-content: start; min-height: 190px; }
.movie-card-body { display: flex; flex-direction: column; align-items: flex-start; }
.movie-card h3 { width: 100%; }
.movie-card h3 a { overflow-wrap: anywhere; }
.movie-meta { line-height: 1.45; }
.movie-summary { width: 100%; }
.tag-row { margin-top: auto; }
.tag { white-space: nowrap; }
.poster-link:focus-visible { outline-offset: -3px; }
.poster-link img { transition: transform .22s ease; }
.poster-link:hover img { transform: scale(1.035); }
.category-card { overflow: hidden; }
.category-card::after { position: absolute; right: -12px; bottom: -35px; width: 100px; height: 100px; border: 1px solid #edf1f2; border-radius: 50%; content: ""; pointer-events: none; }
.category-card > * { position: relative; z-index: 1; }
.category-card a { display: inline-flex; align-items: center; gap: 6px; }
.category-card a::after { content: "→"; font-size: 16px; }
.collection-card { min-width: 0; }
.collection-card li a { min-width: 0; overflow-wrap: anywhere; }
.collection-card li span { flex: 0 0 auto; }
.viewing-info { border: 1px solid #d5e0e3; border-radius: var(--radius); }
.viewing-list div:last-child { border-bottom: 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: inline-block; }
.footer-bottom span { line-height: 1.5; }
.breadcrumb li { overflow-wrap: anywhere; }
.detail-poster-wrap { position: relative; overflow: hidden; border-radius: 4px; }
.detail-copy { min-width: 0; }
.detail-copy .eyebrow { margin-bottom: 9px; }
.detail-tags { margin: 14px 0 4px; }
.facts-grid div { padding: 2px 0; }
.facts-grid dd { overflow-wrap: anywhere; }
.detail-description p { max-width: 920px; }
.player-unavailable { border-radius: 3px; }
.player-unavailable .play-symbol { box-sizing: border-box; }
.related-section .movie-card { min-height: 170px; }
.empty-state .button { margin-top: 8px; }
.error-page .button { margin-top: 8px; }
.notice-text { line-height: 1.6; }
@media (min-width: 1201px) {
  .intro-layout { min-height: 230px; }
  .filter-panel { margin-top: 26px; }
  .movie-grid { gap: 18px; }
}
@media (max-width: 1050px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 18px; }
  .movie-card { min-height: 176px; }
  .section-description { max-width: 470px; }
}
@media (max-width: 760px) {
  .site-header { position: relative; }
  .header-inner { align-items: center; }
  .main-nav { order: 3; }
  .main-nav a { display: block; }
  .intro-layout { padding-top: 25px; padding-bottom: 25px; }
  .intro-lead { font-size: 14px; }
  .filter-panel { margin-top: 16px; }
  .filter-form label { min-width: 0; }
  .filter-form input, .filter-form select { min-width: 0; }
  .movie-card { min-height: 0; }
  .movie-card-body { min-height: 135px; }
  .category-card::after { width: 70px; height: 70px; }
  .viewing-list div { align-items: start; }
  .detail-page .breadcrumb { padding-top: 13px; padding-bottom: 13px; }
  .detail-copy { overflow-wrap: anywhere; }
  .detail-summary { line-height: 1.7; }
  .player-unavailable { align-items: flex-start; padding: 18px; }
}
@media (max-width: 430px) {
  .brand { max-width: calc(100% - 110px); }
  .brand span { line-height: 1.25; }
  .brand small { margin-top: 3px; font-size: 10px; }
  .nav-toggle { min-height: 36px; padding: 6px 10px; font-size: 12px; }
  .intro-points { gap: 6px; }
  .intro-points span { font-size: 11px; }
  .filter-panel { padding: 15px 12px; }
  .quick-filters { gap: 6px; }
  .movie-card { min-height: 150px; }
  .movie-card-body { min-height: 132px; }
  .movie-summary { -webkit-line-clamp: 3; }
  .facts-grid { gap: 8px 12px; }
  .player-unavailable { gap: 12px; }
  .play-symbol { width: 42px; height: 42px; }
  .player-unavailable h3 { font-size: 15px; }
  .player-unavailable p { font-size: 12px; }
}
@media (hover: none) {
  .movie-card:hover { box-shadow: none; }
  .poster-link:hover img { transform: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .filter-panel, .nav-toggle, .button { display: none !important; }
  .container { width: 100%; }
  .movie-card, .detail-hero, .detail-description { break-inside: avoid; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}
