/* 影视大全：清爽目录型片库视觉系统 */
:root {
    --ink: #143642;
    --ink-deep: #0B1920;
    --blue-gray: #2B6E7D;
    --canvas: #F5F6F8;
    --paper: #FFFFFF;
    --text: #1A242B;
    --muted: #5A6872;
    --line: #DCE2E6;
    --warm: #C85019;
    --warm-soft: #FFF0E8;
    --radius: 6px;
    --container: 1240px;
    --shadow: 0 8px 24px rgba(20, 54, 66, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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(--blue-gray); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 3px solid rgba(200, 80, 25, .35);
    outline-offset: 2px;
}
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.visually-hidden {
    position: absolute !important; 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; top: -60px; left: 12px; z-index: 1000;
    padding: 8px 14px; color: #fff; background: var(--ink); border-radius: 4px;
}
.skip-link:focus { top: 12px; color: #fff; }
.site-header {
    position: relative; z-index: 20; background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: min(var(--container), calc(100% - 48px)); min-height: 76px;
    margin: auto; display: flex; align-items: center; gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.primary-nav a { position: relative; padding: 26px 0; color: #33444D; font-weight: 650; white-space: nowrap; }
.primary-nav a:hover { color: var(--warm); }
.primary-nav a::after { position: absolute; right: 0; bottom: 18px; left: 0; height: 2px; content: ""; background: var(--warm); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover::after { transform: scaleX(1); }
.header-search { display: flex; width: 270px; height: 40px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #FAFBFC; }
.header-search input { min-width: 0; flex: 1; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.header-search button { padding: 0 15px; border: 0; color: #fff; background: var(--ink); cursor: pointer; font-size: 13px; }
.menu-toggle { display: none; }
.intro-band { padding: 42px 0 36px; background: linear-gradient(110deg, #EAF0F2 0%, #F5F6F8 62%, #F9F5F1 100%); border-bottom: 1px solid #E6EAED; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: center; gap: 48px; }
.eyebrow, .section-kicker { display: inline-block; margin: 0 0 8px; color: var(--blue-gray); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.intro-copy h1 { max-width: 720px; margin: 0 0 12px; color: var(--ink); font-size: clamp(28px, 3vw, 38px); line-height: 1.25; letter-spacing: -.035em; }
.intro-lead { max-width: 720px; margin: 0; color: #43535C; font-size: 16px; }
.intro-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.intro-points span { padding: 4px 10px; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid #D9E2E5; border-radius: 4px; font-size: 12px; font-weight: 700; }
.hero-search { padding: 20px; background: #fff; border: 1px solid #E0E6E9; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-search label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 15px; font-weight: 750; }
.hero-search__control { display: flex; min-height: 46px; }
.hero-search input { min-width: 0; flex: 1; padding: 0 12px; border: 1px solid #C9D3D8; border-right: 0; border-radius: 4px 0 0 4px; }
.hero-search button, .search-page-form button { padding: 0 17px; border: 0; border-radius: 0 4px 4px 0; color: #fff; background: var(--warm); font-weight: 700; cursor: pointer; }
.hero-search p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.quick-index { padding-top: 30px; }
.quick-index__heading, .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 16px; }
.quick-index__heading h2, .section-heading h2 { margin: 0; color: var(--ink); font-size: 23px; line-height: 1.35; }
.quick-index__heading p { max-width: 440px; margin: 0 0 2px; color: var(--muted); font-size: 13px; }
.index-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.index-links a { position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: 12px; min-height: 86px; padding: 15px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s ease, transform .18s ease; }
.index-links a:hover { border-color: var(--blue-gray); transform: translateY(-2px); }
.index-number { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue-gray); background: #EDF3F5; border-radius: 4px; font-size: 12px; font-weight: 800; }
.index-links strong { align-self: end; color: var(--ink); font-size: 17px; }
.index-links small { align-self: start; color: var(--muted); font-size: 12px; }
.content-section { padding-top: 34px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { font-size: 24px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.text-link { flex: 0 0 auto; padding-bottom: 3px; color: var(--blue-gray); font-size: 13px; font-weight: 750; }
.text-link span { padding-left: 5px; color: var(--warm); }
.media-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.media-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; transition: box-shadow .2s ease, transform .2s ease; }
.media-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.poster-link { position: relative; display: block; overflow: hidden; background: #E5EAED; aspect-ratio: 2 / 3; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-card:hover .poster { transform: scale(1.035); }
.poster-badge { position: absolute; top: 9px; left: 8px; max-width: calc(100% - 16px); padding: 3px 7px; overflow: hidden; color: #fff; background: var(--warm); border-radius: 3px; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.media-card__body { padding: 9px 10px 11px; }
.media-card h3 { margin: 0 0 5px; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 750; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.media-card__summary { display: -webkit-box; min-height: 40px; margin: 0 0 9px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.7; -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; max-width: 100%; padding: 2px 6px; overflow: hidden; color: #52616A; background: #F0F3F5; border-radius: 3px; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tag--warm { color: #A13F13; background: var(--warm-soft); }
.special-section { margin-top: 36px; padding: 30px 0 34px; background: #EDF1F3; border-top: 1px solid #E2E7EA; border-bottom: 1px solid #E2E7EA; }
.version-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.version-card { display: grid; grid-template-columns: 116px 1fr; min-height: 144px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.version-card img { width: 116px; height: 100%; min-height: 144px; object-fit: cover; background: #E3E8EA; }
.version-card > div { padding: 12px; }
.version-index { color: var(--warm); font-size: 10px; font-weight: 800; }
.version-card h3 { margin: 3px 0 5px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.version-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.collection-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.collection-card > img { width: 100%; height: 156px; object-fit: cover; background: #E4E9EC; }
.collection-card__content { padding: 14px 15px 15px; }
.collection-subtitle { color: var(--warm); font-size: 11px; font-weight: 800; }
.collection-card h3, .collection-card h2 { margin: 4px 0 6px; color: var(--ink); font-size: 18px; line-height: 1.4; }
.collection-card p { min-height: 66px; margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.collection-items { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid #EDF0F2; }
.collection-items a { padding: 3px 7px; color: var(--blue-gray); background: #F0F5F6; border-radius: 3px; font-size: 11px; font-weight: 700; }
.ranking-section { padding-bottom: 38px; }
.ranking-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.ranking-item { display: grid; grid-template-columns: 52px minmax(150px, 1fr) minmax(180px, .8fr) 24px; align-items: center; gap: 14px; min-height: 68px; padding: 10px 18px; border-bottom: 1px solid #EDF0F2; }
.ranking-item:last-child { border-bottom: 0; }
.ranking-item:hover { background: #F8FAFB; }
.ranking-number { color: var(--warm); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ranking-title { color: var(--ink); font-weight: 750; }
.ranking-title small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.ranking-reason { color: var(--muted); font-size: 12px; }
.ranking-arrow { color: var(--warm); font-size: 20px; text-align: right; }
.access-section { padding: 34px 0; color: #fff; background: var(--ink); }
.access-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; }
.access-section .section-kicker { color: #B9D5DC; }
.access-section h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.35; }
.access-section p { max-width: 650px; margin: 0; color: #D1DEE2; font-size: 13px; }
.access-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.access-facts div { min-height: 86px; padding: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 4px; }
.access-facts strong, .access-facts span { display: block; }
.access-facts strong { margin-bottom: 5px; color: #fff; font-size: 13px; }
.access-facts span { color: #C5D5DA; font-size: 11px; line-height: 1.5; }
.site-footer { padding: 26px 0 22px; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px 30px; }
.footer-brand strong { color: var(--ink); font-size: 18px; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 18px; color: var(--blue-gray); font-size: 12px; font-weight: 700; }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 12px; color: #7B878E; border-top: 1px solid #EDF0F2; font-size: 11px; }
.page-main { min-height: 55vh; padding-top: 24px; padding-bottom: 54px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 22px; color: #829098; font-size: 12px; }
.breadcrumbs a { color: var(--blue-gray); }
.page-heading { max-width: 800px; margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 8px; color: var(--ink); font-size: 30px; line-height: 1.3; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.filter-note { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 14px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.filter-note strong { color: var(--ink); font-size: 14px; }
.filter-note span { color: var(--muted); font-size: 12px; }
.media-grid--listing { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.collection-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collection-grid--page .collection-card > img { height: 190px; }
.detail-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 34px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.detail-poster { overflow: hidden; background: #E5EAED; border-radius: 4px; }
.detail-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.detail-copy h1 { margin: 0 0 10px; color: var(--ink); font-size: 32px; line-height: 1.25; }
.detail-lead { margin: 0 0 16px; color: #46565F; font-size: 15px; }
.detail-tags { margin-bottom: 18px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; border-top: 1px solid #E9EDEF; }
.detail-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #E9EDEF; font-size: 12px; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { margin: 0; color: var(--text); text-align: right; }
.detail-notice { margin-top: 18px; padding: 12px 14px; background: #FFF7F2; border-left: 3px solid var(--warm); }
.detail-notice strong { color: #8F3915; font-size: 13px; }
.detail-notice p { margin: 4px 0 0; color: #76594C; font-size: 12px; }
.detail-description { margin-top: 22px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.detail-description h2 { margin: 0 0 10px; color: var(--ink); font-size: 21px; }
.detail-description p { margin: 0 0 10px; color: #45545C; font-size: 14px; line-height: 1.9; }
.detail-description p:last-child { margin-bottom: 0; }
.related-section { padding-top: 30px; }
.search-page-form { max-width: 760px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.search-page-form label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 750; }
.search-page-form > div { display: flex; min-height: 46px; }
.search-page-form input { min-width: 0; flex: 1; padding: 0 13px; border: 1px solid #C9D3D8; border-right: 0; border-radius: 4px 0 0 4px; }
.search-page-form button { border-radius: 0 4px 4px 0; }
.empty-state { margin-top: 18px; padding: 34px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.empty-state h2 { margin: 0 0 6px; color: var(--ink); font-size: 20px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.empty-links { display: flex; justify-content: center; gap: 18px; margin-top: 16px; color: var(--blue-gray); font-size: 13px; font-weight: 750; }
.error-page { min-height: 55vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-code { color: var(--warm); font-size: 58px; font-weight: 900; line-height: 1; }
.error-page h1 { margin: 12px 0 8px; color: var(--ink); font-size: 30px; }
.error-page p { max-width: 580px; margin: 0 0 20px; color: var(--muted); }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; color: #fff; background: var(--ink); border-radius: 4px; font-size: 13px; font-weight: 750; }
.button-link:hover { color: #fff; background: var(--blue-gray); }

@media (max-width: 1100px) {
    .header-inner { gap: 22px; }
    .primary-nav { gap: 18px; }
    .header-search { width: 220px; }
    .media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .version-grid { grid-template-columns: 1fr; }
    .version-card { grid-template-columns: 150px 1fr; }
    .version-card img { width: 150px; }
    .access-grid { gap: 28px; }
}
@media (max-width: 820px) {
    .container, .header-inner { width: min(100% - 32px, var(--container)); }
    .header-inner { min-height: 66px; flex-wrap: wrap; gap: 12px; padding: 10px 0; }
    .brand { font-size: 20px; }
    .brand img { width: 38px; height: 38px; }
    .menu-toggle { display: flex; width: 40px; height: 38px; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
    .menu-toggle__line { display: block; width: 100%; height: 2px; background: var(--ink); }
    .primary-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0; border-top: 1px solid var(--line); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 10px 4px; border-bottom: 1px solid #EEF1F2; }
    .primary-nav a::after { display: none; }
    .header-search { order: 2; width: 100%; }
    .intro-band { padding: 30px 0; }
    .intro-grid { grid-template-columns: 1fr; gap: 22px; }
    .intro-copy h1 { font-size: 30px; }
    .quick-index__heading, .section-heading { align-items: flex-start; }
    .quick-index__heading p { max-width: 300px; }
    .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 10px; }
    .media-grid--listing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .access-grid { grid-template-columns: 1fr; gap: 22px; }
    .detail-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 560px) {
    body { font-size: 14px; }
    .container, .header-inner { width: calc(100% - 28px); }
    .header-inner { gap: 10px; }
    .header-search { height: 38px; }
    .intro-band { padding: 25px 0; }
    .intro-copy h1 { font-size: 26px; }
    .intro-lead { font-size: 14px; }
    .intro-points { gap: 6px; }
    .intro-points span { font-size: 10px; }
    .hero-search { padding: 14px; }
    .quick-index { padding-top: 24px; }
    .quick-index__heading, .section-heading { display: block; }
    .quick-index__heading h2, .section-heading h2 { font-size: 21px; }
    .quick-index__heading p { margin-top: 6px; }
    .text-link { display: inline-block; margin-top: 8px; }
    .index-links { grid-template-columns: 1fr; gap: 8px; }
    .index-links a { min-height: 70px; }
    .content-section { padding-top: 28px; }
    .media-grid, .media-grid--listing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
    .media-card__body { padding: 8px; }
    .media-card h3 { font-size: 14px; }
    .media-card__summary { min-height: 38px; font-size: 10px; }
    .tag { font-size: 9px; }
    .special-section { margin-top: 28px; padding: 25px 0; }
    .version-card { grid-template-columns: 104px 1fr; min-height: 130px; }
    .version-card img { width: 104px; min-height: 130px; }
    .version-card > div { padding: 9px; }
    .version-card h3 { font-size: 13px; }
    .version-card p { font-size: 10px; }
    .collection-grid, .collection-grid--page { grid-template-columns: 1fr; }
    .collection-card > img, .collection-grid--page .collection-card > img { height: 170px; }
    .collection-card p { min-height: 0; }
    .ranking-item { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 8px; padding: 10px 12px; }
    .ranking-reason { display: none; }
    .ranking-number { font-size: 17px; }
    .access-section { padding: 27px 0; }
    .access-section h2 { font-size: 21px; }
    .access-facts { grid-template-columns: 1fr; }
    .access-facts div { min-height: 0; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; gap: 12px; }
    .copyright { grid-column: auto; }
    .page-main { padding-top: 18px; padding-bottom: 38px; }
    .page-heading h1 { font-size: 25px; }
    .filter-note { align-items: flex-start; flex-direction: column; gap: 3px; }
    .detail-layout { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
    .detail-poster { width: min(68%, 250px); margin: auto; }
    .detail-copy h1 { font-size: 26px; }
    .detail-facts { grid-template-columns: 1fr; }
    .detail-description { padding: 16px; }
    .search-page-form { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
