/* 影视大全：清爽目录型片库视觉系统 */
:root {
    color-scheme: light;
    --brand: #143642;
    --brand-soft: #2B6E7D;
    --night: #0B1920;
    --canvas: #F5F6F8;
    --paper: #FFFFFF;
    --ink: #1A242B;
    --muted: #5A6872;
    --accent: #C85019;
    --line: #DCE2E6;
    --line-strong: #C8D1D7;
    --radius: 5px;
    --container: 1240px;
    --shadow: 0 5px 18px rgba(20, 54, 66, .055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
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.72;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-soft); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link, .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:focus { position: fixed; z-index: 1000; width: auto; height: auto; clip: auto; margin: 10px; padding: 10px 16px; background: #fff; }
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: var(--brand); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-size: 21px; letter-spacing: .02em; font-weight: 800; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.primary-nav { display: flex; align-items: center; gap: 7px; }
.primary-nav a { padding: 10px 15px; color: #35434B; font-size: 14px; border-radius: 4px; transition: background .18s, color .18s; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--brand); background: #EDF3F4; }
.nav-toggle { display: none; width: 42px; height: 40px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 9px; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--brand); }
.hero-strip { background: linear-gradient(112deg, #EAF0F2 0%, #F7F8F9 58%, #EEF3F4 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 52px; align-items: center; padding-top: 38px; padding-bottom: 38px; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: var(--brand-soft); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hero-copy h1 { margin: 0; color: var(--brand); font-size: clamp(27px, 3vw, 36px); line-height: 1.35; letter-spacing: -.025em; }
.hero-lead { max-width: 760px; margin: 13px 0 17px; color: #4B5A63; font-size: 15px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points span { padding: 4px 9px; color: var(--brand); background: rgba(255,255,255,.76); border: 1px solid #D5E0E3; border-radius: 4px; font-size: 12px; }
.hero-search-panel { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); }
.hero-search-panel h2 { margin: 0; color: var(--brand); font-size: 18px; }
.hero-search-panel > p { margin: 3px 0 13px; color: var(--muted); font-size: 13px; }
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 0; flex: 1; height: 42px; padding: 0 12px; color: var(--ink); background: #FBFCFC; border: 1px solid var(--line-strong); border-radius: 4px; outline: none; }
.search-form input:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(43,110,125,.12); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover { color: #fff; background: #205363; }
.button-light { color: var(--brand); background: #fff; border-color: #fff; }
.quick-search { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 11px; color: var(--muted); font-size: 12px; }
.quick-search a { color: var(--brand-soft); }
.page-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 25px; padding-top: 28px; padding-bottom: 55px; align-items: start; }
.filter-rail { position: sticky; top: 18px; padding: 17px 13px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.filter-rail h2 { margin: 0 0 11px; padding: 0 5px 10px; color: var(--brand); font-size: 16px; border-bottom: 1px solid var(--line); }
.filter-rail > a { display: flex; justify-content: space-between; align-items: center; margin: 3px 0; padding: 8px 9px; color: #44535C; border-radius: 4px; font-size: 13px; }
.filter-rail > a span { color: #8A969D; font-size: 11px; }
.filter-rail > a:hover, .filter-rail > a.selected { color: var(--brand); background: #EDF3F4; font-weight: 700; }
.rail-note { margin-top: 19px; padding: 12px 10px; background: #F6F8F9; border-left: 3px solid var(--brand-soft); }
.rail-note strong { color: var(--brand); font-size: 12px; }
.rail-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.content-column { min-width: 0; }
.content-section { margin-bottom: 30px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; color: var(--brand); font-size: 22px; line-height: 1.4; font-weight: 750; }
.section-description { max-width: 760px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.text-link { flex: 0 0 auto; color: var(--brand-soft); font-size: 13px; font-weight: 700; }
.section-count, .result-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feature-item { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 8px; background: #FAFBFC; border: 1px solid #E8ECEF; border-radius: 4px; }
.feature-item:hover { border-color: #B7C9CE; background: #F5F8F9; }
.feature-item img { width: 52px; height: 68px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; background: #E7ECEF; }
.feature-item span { display: grid; min-width: 0; }
.feature-item strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.feature-item small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.movie-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 13px; }
.movie-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #E2E7EA; border-radius: 5px; transition: border-color .18s, transform .18s, box-shadow .18s; }
.movie-card:hover { border-color: #B5C8CE; transform: translateY(-2px); box-shadow: 0 7px 17px rgba(20,54,66,.08); }
.poster-link { position: relative; display: block; overflow: hidden; background: #E8ECEF; }
.poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .25s; }
.movie-card:hover .poster { transform: scale(1.025); }
.poster-type { position: absolute; top: 7px; left: 7px; padding: 2px 7px; color: #fff; background: rgba(11,25,32,.78); border-radius: 3px; font-size: 10px; }
.movie-card-body { padding: 9px 9px 10px; }
.movie-card h3 { margin: 0; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.movie-card h3 a:hover { color: var(--brand-soft); }
.card-summary { display: -webkit-box; min-height: 40px; margin: 5px 0 8px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tag-row, .detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 6px; color: #5B6971; background: #F1F4F5; border: 1px solid #E7ECEE; border-radius: 3px; font-size: 10px; line-height: 1.5; }
.special-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.special-card { display: flex; gap: 12px; min-width: 0; padding: 12px; background: #FAFBFC; border: 1px solid #E7ECEE; border-radius: 4px; }
.special-card img { width: 76px; height: 112px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; background: #E7ECEF; }
.special-card h3, .topic-card h3 { margin: 0 0 6px; color: var(--brand); font-size: 15px; }
.special-card p, .topic-card p { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.topic-card { display: flex; min-width: 0; overflow: hidden; background: #FAFBFC; border: 1px solid #E5EAED; border-radius: 4px; }
.topic-card > img { width: 112px; flex: 0 0 112px; object-fit: cover; aspect-ratio: 2 / 3; }
.topic-content { min-width: 0; padding: 12px; }
.topic-links { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.topic-links a { color: var(--brand-soft); font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.editorial-grid article { padding: 14px; background: #F7F9FA; border-top: 2px solid var(--brand-soft); }
.editorial-grid h3 { margin: 0 0 7px; color: var(--brand); font-size: 14px; }
.editorial-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.access-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 23px; color: #fff; background: var(--brand); border-color: var(--brand); }
.access-banner .section-kicker { color: #B7D4DB; }
.access-banner h2 { margin: 0 0 7px; font-size: 21px; }
.access-banner p:not(.section-kicker) { max-width: 760px; margin: 0; color: #D7E4E7; font-size: 13px; }
.access-banner .button { flex: 0 0 auto; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { position: relative; padding: 13px 30px 13px 2px; color: var(--brand); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; right: 5px; top: 10px; color: var(--brand-soft); font-size: 20px; font-weight: 400; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.empty-state { padding: 35px 15px; text-align: center; background: #F8FAFB; border: 1px dashed var(--line-strong); }
.empty-state strong { color: var(--brand); font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state a { color: var(--brand-soft); font-weight: 700; }
.site-footer { padding: 35px 0 16px; color: #DCE5E8; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 45px; padding-bottom: 28px; }
.brand-footer { color: #fff; }
.brand-footer small { color: #B8C6CB; }
.footer-brand p { max-width: 520px; margin: 14px 0 0; color: #AEBFC5; font-size: 12px; line-height: 1.9; }
.footer-grid h2 { margin: 0 0 10px; color: #fff; font-size: 14px; }
.footer-grid > div:not(:first-child) a { display: block; margin: 6px 0; color: #B8C6CB; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 13px; color: #91A4AB; border-top: 1px solid #263A42; font-size: 11px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 20px 0; color: #7B8990; font-size: 12px; }
.breadcrumb a { color: var(--brand-soft); }
.detail-page, .access-page { padding-bottom: 55px; }
.detail-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.detail-poster-wrap { width: 100%; max-width: 260px; }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: #E8ECEF; }
.detail-main h1, .access-intro h1 { margin: 0 0 10px; color: var(--brand); font-size: 31px; line-height: 1.35; }
.detail-intro { margin: 0 0 13px; color: #485861; font-size: 15px; }
.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 18px 0; border-top: 1px solid var(--line); }
.meta-list div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #EDF0F2; }
.meta-list dt { min-width: 78px; color: var(--muted); font-size: 12px; }
.meta-list dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.detail-notice { margin: 15px 0; padding: 12px 14px; background: #FFF7F2; border-left: 3px solid var(--accent); }
.detail-notice strong { color: #9C3D16; font-size: 13px; }
.detail-notice p { margin: 4px 0 0; color: #6E5144; font-size: 12px; }
.detail-content .long-description { max-width: 940px; margin: 0 0 12px; color: #46545C; font-size: 14px; line-height: 2; }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.error-page { min-height: 56vh; display: grid; align-content: center; justify-items: center; text-align: center; }
.error-code { color: #DCE6E9; font-size: clamp(80px, 15vw, 150px); font-weight: 900; line-height: 1; }
.error-page h1 { margin: 10px 0 0; color: var(--brand); font-size: 27px; }
.error-page p { color: var(--muted); }
.access-intro { margin: 0 0 22px; padding: 35px; background: #EAF0F2; border: 1px solid var(--line); border-radius: 5px; }
.access-intro h1 { max-width: 850px; }
.access-intro > p:last-child { max-width: 850px; margin: 0; color: #4B5A63; }
.access-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.access-cards article { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.access-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 13px; color: #fff; background: var(--brand); border-radius: 4px; font-size: 17px; font-weight: 800; }
.access-cards h2, .access-details h2 { margin: 0 0 8px; color: var(--brand); font-size: 19px; }
.access-cards p, .access-details p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.access-cards ul { margin: 12px 0 0; padding-left: 18px; color: #43535B; font-size: 12px; line-height: 2; }
.access-details { margin-top: 22px; }
.access-details h2:not(:first-child) { margin-top: 23px; }
.access-details .button { margin-top: 8px; }
:focus-visible { outline: 3px solid rgba(200,80,25,.5); outline-offset: 2px; }
@media (max-width: 1100px) {
    .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-inner { gap: 28px; }
    .special-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .container { width: min(100% - 30px, var(--container)); }
    .header-inner { min-height: 68px; }
    .nav-toggle { display: block; }
    .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 15px 15px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 12px rgba(20,54,66,.07); }
    .primary-nav.is-open { display: grid; grid-template-columns: repeat(2, 1fr); }
    .primary-nav a { padding: 11px; }
    .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 27px; padding-bottom: 27px; }
    .page-layout { grid-template-columns: 1fr; gap: 14px; padding-top: 17px; }
    .filter-rail { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px; }
    .filter-rail h2 { width: 100%; margin-bottom: 4px; padding-bottom: 7px; }
    .filter-rail > a { flex: 1 1 auto; justify-content: center; gap: 7px; }
    .rail-note { display: none; }
    .content-section { padding: 17px; margin-bottom: 18px; }
    .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 9px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-hero { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; padding: 18px; }
    .detail-main h1, .access-intro h1 { font-size: 27px; }
}
@media (max-width: 560px) {
    body { font-size: 14px; }
    .container { width: calc(100% - 24px); }
    .brand img { width: 37px; height: 37px; }
    .brand strong { font-size: 19px; }
    .brand small { font-size: 10px; }
    .hero-copy h1 { font-size: 25px; }
    .hero-lead { font-size: 13px; }
    .hero-search-panel { padding: 15px; }
    .search-form { gap: 6px; }
    .search-form input { height: 40px; font-size: 13px; }
    .search-form .button { padding-inline: 13px; }
    .section-heading { align-items: start; }
    .section-heading h2 { font-size: 19px; }
    .section-description { font-size: 12px; }
    .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 8px; }
    .movie-card-body { padding: 7px; }
    .movie-card h3 { font-size: 12px; }
    .card-summary { min-height: 35px; font-size: 10px; }
    .tag { font-size: 9px; padding-inline: 4px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
    .feature-item { gap: 7px; padding: 6px; }
    .feature-item img { width: 42px; height: 57px; }
    .feature-item strong { font-size: 11px; }
    .feature-item small { font-size: 9px; }
    .topic-grid, .editorial-grid { grid-template-columns: 1fr; }
    .topic-card > img { width: 92px; flex-basis: 92px; }
    .special-card { gap: 9px; padding: 9px; }
    .special-card img { width: 62px; height: 92px; }
    .special-card h3, .topic-card h3 { font-size: 13px; }
    .special-card p, .topic-card p { font-size: 11px; }
    .access-banner { display: block; }
    .access-banner .button { margin-top: 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { display: grid; gap: 5px; }
    .detail-hero { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 13px; }
    .detail-main h1 { font-size: 21px; }
    .detail-intro { font-size: 12px; }
    .meta-list { grid-template-columns: 1fr; margin: 12px 0; }
    .meta-list div { padding: 5px 0; }
    .meta-list dt { min-width: 68px; }
    .detail-notice { padding: 9px; }
    .detail-notice p { font-size: 11px; }
    .detail-main .button { width: 100%; padding-inline: 8px; font-size: 12px; }
    .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .access-intro { padding: 21px; }
    .access-intro h1 { font-size: 24px; }
    .access-cards { grid-template-columns: 1fr; gap: 10px; }
    .access-cards article { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
