/* 影视大全：清爽目录型影库界面 */
:root {
  color-scheme: light;
  --ink: #1A242B;
  --muted: #5A6872;
  --brand: #143642;
  --brand-soft: #2B6E7D;
  --night: #0B1920;
  --canvas: #F5F6F8;
  --paper: #FFFFFF;
  --line: #E0E5E8;
  --accent: #C85019;
  --accent-soft: #FFF0E9;
  --radius: 6px;
  --container: 1240px;
  --shadow: 0 8px 26px rgba(20, 54, 66, .055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  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, select { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 1000; top: -60px; left: 16px;
  padding: 9px 14px; background: var(--brand); color: #fff; border-radius: 4px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(200, 80, 25, .45); outline-offset: 3px; }
.site-header {
  position: sticky; z-index: 30; top: 0; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 5px; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { color: var(--brand); font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { color: #43525A; font-size: 14px; font-weight: 650; padding: 26px 0 23px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand); border-color: var(--accent); }
.header-action {
  padding: 9px 15px; color: #fff; background: var(--brand); border-radius: 4px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.header-action:hover { color: #fff; background: var(--brand-soft); }
.hero-strip {
  background: linear-gradient(110deg, #EAF0F1 0%, #F5F6F8 62%, #EDF2F3 100%);
  border-bottom: 1px solid #E6EAEC;
}
.hero-inner { min-height: 268px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 60px; padding-block: 38px; }
.eyebrow { margin: 0 0 8px; color: var(--brand-soft); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.hero-copy h1 { margin: 0; color: var(--brand); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; letter-spacing: -.035em; }
.hero-lead { max-width: 700px; margin: 13px 0 18px; color: #52616A; font-size: 16px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-points span { padding: 4px 10px; border: 1px solid #D5E0E3; border-radius: 4px; color: #435A63; background: rgba(255,255,255,.62); font-size: 12px; }
.hero-side { padding: 19px 21px; background: #fff; border: 1px solid #DFE6E8; border-radius: 6px; box-shadow: var(--shadow); }
.hero-side-top { display: flex; align-items: center; gap: 12px; }
.side-mark { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 5px; font-size: 20px; font-weight: 800; }
.hero-side-top div { display: flex; flex-direction: column; }
.hero-side-top strong { color: var(--brand); font-size: 15px; }
.hero-side-top small { color: var(--muted); font-size: 11px; }
.hero-side p { margin: 15px 0 11px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 750; }
.text-link span { margin-left: 5px; }
.search-panel {
  position: relative; margin-top: 25px; padding: 21px 24px 17px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(20,54,66,.035);
}
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; color: var(--brand); font-size: 23px; line-height: 1.3; letter-spacing: -.02em; }
.section-heading .eyebrow { margin-bottom: 4px; }
.compact-heading { align-items: center; margin-bottom: 14px; }
.compact-heading h2 { font-size: 19px; }
.result-count { color: var(--muted); font-size: 12px; }
.search-form { display: grid; grid-template-columns: minmax(240px, 1fr) 155px 155px auto auto; gap: 9px; }
.search-form input, .search-form select {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #D9E0E3;
  border-radius: 4px; background: #FBFCFC; color: var(--ink); outline: none;
}
.search-form input:focus, .search-form select:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(43,110,125,.1); }
.search-form input::placeholder { color: #98A3A9; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 750; transition: background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { color: #fff; background: #A94114; }
.button-light { color: var(--brand); background: #fff; }
.button-light:hover { color: var(--brand); background: #EDF4F5; }
.reset-link { align-self: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.quick-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.quick-filters a { padding: 3px 9px; background: #F1F4F5; border-radius: 3px; color: #4E6069; }
.quick-filters a:hover { color: var(--brand); background: #E5EEF0; }
.content-section { margin-top: 34px; }
.section-desc { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.section-number { color: #C7D1D5; font-size: 31px; font-weight: 800; line-height: 1; }
.poster-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; }
.poster-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.poster-card:hover { border-color: #B8C9CE; box-shadow: var(--shadow); transform: translateY(-2px); }
.poster-link { display: block; height: 100%; }
.poster-frame { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: #E8ECEE; }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.poster-card:hover .poster-frame img { transform: scale(1.035); }
.poster-type { position: absolute; top: 9px; left: 9px; padding: 3px 8px; color: #fff; background: var(--accent); border-radius: 3px; font-size: 10px; font-weight: 800; }
.poster-type-blue { background: var(--brand-soft); }
.poster-info { padding: 10px 11px 12px; }
.poster-info h3 { overflow: hidden; margin: 0 0 5px; color: var(--brand); font-size: 15px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.poster-info p { display: -webkit-box; overflow: hidden; min-height: 42px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 9px; color: #7A878D; font-size: 10px; }
.card-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.badge { padding: 2px 6px; color: #A6471E; background: var(--accent-soft); border-radius: 3px; font-size: 10px; font-weight: 750; line-height: 1.55; }
.empty-inline { padding: 30px; color: var(--muted); text-align: center; background: #fff; border: 1px dashed #CAD4D8; border-radius: 5px; }
.special-section { padding: 23px 24px 25px; background: #EDF1F2; border: 1px solid #E0E7E9; border-radius: 6px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.topic-card { display: flex; gap: 15px; padding: 16px; background: #fff; border: 1px solid #E1E7E9; border-radius: 5px; }
.topic-index { flex: 0 0 40px; color: #C5D1D5; font-size: 25px; font-weight: 850; line-height: 1.25; }
.topic-copy h3 { margin: 0 0 4px; color: var(--brand); font-size: 16px; }
.topic-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.topic-links { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 10px; }
.topic-links a { color: var(--brand-soft); font-size: 11px; font-weight: 700; }
.topic-links a:hover { color: var(--accent); }
.ranking-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 18px; }
.ranking-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.ranking-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 70px 18px; align-items: center; gap: 12px; min-height: 64px; padding: 9px 15px; border-bottom: 1px solid #EDF0F1; }
.ranking-item:last-child { border-bottom: 0; }
.ranking-item:hover { background: #F8FAFA; }
.rank-no { color: #B5C2C7; font-size: 20px; font-weight: 850; text-align: center; }
.ranking-item:nth-child(-n+3) .rank-no { color: var(--accent); }
.rank-title { display: flex; min-width: 0; flex-direction: column; }
.rank-title strong { color: var(--brand); font-size: 14px; }
.rank-title small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rank-type { color: var(--muted); font-size: 11px; text-align: right; }
.rank-arrow { color: #9AA9AE; }
.editor-note { padding: 20px; color: #DCE7E9; background: var(--brand); border-radius: 5px; }
.note-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; color: var(--brand); background: #DCE9EB; border-radius: 4px; font-weight: 850; }
.editor-note h3 { margin: 13px 0 7px; color: #fff; font-size: 17px; }
.editor-note p { margin: 0 0 14px; color: #C4D4D8; font-size: 12px; }
.editor-note .text-link { color: #FFD0B8; }
.access-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 35px; padding: 25px 29px; color: #fff; background: var(--night); border-radius: 5px; }
.access-band .eyebrow { color: #A7C6CD; }
.access-band h2 { margin: 0; font-size: 21px; }
.access-band p:not(.eyebrow) { max-width: 760px; margin: 6px 0 0; color: #B9C8CD; font-size: 13px; }
.site-footer { margin-top: 42px; padding: 34px 0 28px; color: #C5D2D6; background: #102A33; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1.2fr; gap: 50px; }
.brand-footer strong { color: #fff; }
.brand-footer small { color: #AFC1C6; }
.footer-brand p, .footer-note p { max-width: 440px; margin: 13px 0 0; color: #AFC0C5; font-size: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.footer-links strong, .footer-note strong { margin-bottom: 4px; color: #fff; font-size: 13px; }
.footer-links a { color: #B8C9CE; }
.footer-links a:hover { color: #fff; }
.footer-note span { display: inline-block; margin-top: 13px; color: #8FA5AC; font-size: 11px; }
.page-shell { min-height: 460px; padding-top: 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; color: #89969C; font-size: 12px; }
.breadcrumb a { color: var(--brand-soft); }
.detail-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; margin-top: 25px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.detail-poster { position: relative; overflow: hidden; align-self: start; aspect-ratio: 2 / 3; background: #E8ECEE; border-radius: 4px; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-main h1 { margin: 0; color: var(--brand); font-size: 32px; line-height: 1.25; }
.detail-summary { max-width: 850px; margin: 12px 0 18px; color: #52616A; font-size: 16px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: #E7ECEE; border: 1px solid #E7ECEE; border-radius: 4px; }
.detail-facts div { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; background: #FAFBFB; }
.detail-facts span { color: #89969C; font-size: 11px; }
.detail-facts strong { color: var(--brand); font-size: 13px; }
.detail-badges { margin: 14px 0; }
.notice-box { margin: 16px 0 18px; padding: 14px 16px; background: #F3F6F6; border-left: 3px solid var(--brand-soft); }
.notice-box strong { color: var(--brand); font-size: 13px; }
.notice-box p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.related-section { margin-bottom: 35px; }
.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.related-list a { display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.related-list strong { color: var(--brand); font-size: 13px; }
.related-list span { color: var(--muted); font-size: 11px; }
.empty-state { max-width: 600px; margin: 70px auto; padding: 45px 25px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.empty-code { color: #D6E0E3; font-size: 64px; font-weight: 900; line-height: 1; }
.empty-state h1 { color: var(--brand); font-size: 25px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.guide-hero { margin-top: 24px; padding: 36px 40px; color: #fff; background: var(--brand); border-radius: 6px; }
.guide-hero .eyebrow { color: #B4D1D7; }
.guide-hero h1 { margin: 0; font-size: 32px; }
.guide-hero p:last-child { max-width: 820px; margin: 12px 0 0; color: #D2E0E3; font-size: 15px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps-grid article, .device-grid article { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.steps-grid article > span { color: var(--accent); font-size: 23px; font-weight: 850; }
.steps-grid h3, .device-grid h3 { margin: 8px 0 5px; color: var(--brand); font-size: 16px; }
.steps-grid p, .device-grid p { margin: 0; color: var(--muted); font-size: 12px; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.device-symbol { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--brand-soft); border-radius: 4px; font-weight: 800; }
.guide-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0 10px; padding: 22px 25px; background: #E8EFF1; border: 1px solid #DCE6E8; border-radius: 5px; }
.guide-callout h2 { margin: 0; color: var(--brand); font-size: 19px; }
.guide-callout p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) {
  .header-inner { gap: 20px; }
  .main-nav { gap: 18px; }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-form { grid-template-columns: minmax(180px, 1fr) 140px 140px auto; }
  .reset-link { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .container { width: min(100% - 30px, var(--container)); }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 0 14px; padding-block: 9px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 10px; }
  .header-action { margin-left: auto; padding: 7px 10px; font-size: 11px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; margin: 7px 0 -9px; overflow-x: auto; }
  .main-nav a { flex: 0 0 auto; padding: 8px 0 9px; font-size: 12px; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; padding-block: 27px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-lead { font-size: 14px; }
  .hero-side { display: none; }
  .search-panel { margin-top: 16px; padding: 16px; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-input-wrap { grid-column: 1 / -1; }
  .search-form .button { grid-column: 1 / -1; }
  .reset-link { grid-column: auto; }
  .content-section { margin-top: 27px; }
  .section-heading h2 { font-size: 20px; }
  .section-desc { max-width: 90%; font-size: 12px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .poster-info { padding: 8px; }
  .poster-info h3 { font-size: 13px; }
  .poster-info p { font-size: 10px; }
  .card-meta { font-size: 9px; }
  .badge { font-size: 9px; }
  .special-section { padding: 17px 14px; }
  .topic-grid { grid-template-columns: 1fr; }
  .ranking-layout { grid-template-columns: 1fr; }
  .editor-note { padding: 17px; }
  .access-band { align-items: flex-start; flex-direction: column; margin-top: 27px; padding: 21px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 17px; padding: 15px; }
  .detail-main h1 { font-size: 25px; }
  .detail-summary { font-size: 13px; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-hero { padding: 27px 22px; }
  .guide-hero h1 { font-size: 26px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 24px); }
  .hero-copy h1 { font-size: 25px; }
  .hero-points { gap: 6px; }
  .hero-points span { font-size: 10px; }
  .search-form { gap: 7px; }
  .search-form input, .search-form select { height: 40px; font-size: 12px; }
  .quick-filters { gap: 6px; font-size: 10px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .poster-info p { min-height: 34px; }
  .topic-card { gap: 9px; padding: 12px; }
  .topic-index { flex-basis: 30px; font-size: 20px; }
  .ranking-item { grid-template-columns: 30px minmax(0, 1fr) 45px 12px; gap: 7px; padding-inline: 9px; }
  .rank-no { font-size: 16px; }
  .rank-title strong { font-size: 12px; }
  .rank-title small { font-size: 10px; }
  .rank-type { font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: auto; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-poster { width: min(62%, 220px); margin-inline: auto; }
  .detail-main h1 { font-size: 24px; }
  .related-list { grid-template-columns: 1fr; }
  .related-list a { grid-template-columns: 1fr 18px; }
  .related-list a span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .related-list a span:last-child { grid-column: 2; grid-row: 1 / span 2; }
  .steps-grid, .device-grid { grid-template-columns: 1fr; }
  .guide-callout { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
