/* 影视大全：清爽片库画布与规整目录栅格 */
:root {
    --ink: #143642;
    --blue-gray: #2B6E7D;
    --night: #0B1920;
    --canvas: #F5F6F8;
    --paper: #FFFFFF;
    --text: #1A242B;
    --muted: #5A6872;
    --accent: #C85019;
    --line: #DDE3E7;
    --soft-line: #E9EDF0;
    --radius: 5px;
    --shadow: 0 3px 14px rgba(20, 54, 66, .045);
    --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
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;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 1000;
    padding: 8px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
}
.skip-link:focus { left: 12px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.topline { background: var(--paper); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand strong { display: block; font-size: 21px; line-height: 1.25; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.header-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4D9476; }
.main-nav { border-top: 1px solid var(--soft-line); }
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 46px; overflow-x: auto; }
.nav-link { flex: 0 0 auto; color: #34444D; font-size: 14px; font-weight: 600; padding: 11px 0; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); border-color: var(--accent); }
.page-main { padding-top: 28px; padding-bottom: 64px; }
.hero-intro {
    display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
    gap: 30px; align-items: center; padding: 26px 30px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.eyebrow { margin: 0 0 8px; color: var(--blue-gray); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.hero-copy h1 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 35px); line-height: 1.35; letter-spacing: -.025em; }
.hero-lead { max-width: 790px; margin: 13px 0 16px; color: #43525A; font-size: 15px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points span { padding: 4px 9px; border: 1px solid #D8E3E6; border-radius: 4px; background: #F6FAFB; color: var(--ink); font-size: 12px; font-weight: 600; }
.hero-side { padding: 17px 19px; background: #F4F8F9; border-left: 3px solid var(--blue-gray); }
.hero-side-title { color: var(--ink); font-weight: 700; }
.hero-side p { margin: 7px 0 9px; color: var(--muted); font-size: 13px; }
.text-link { color: var(--blue-gray); font-size: 13px; font-weight: 700; }
.filter-panel { margin-top: 22px; padding: 20px 22px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filter-heading h2, .section-heading h2 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.4; }
.filter-heading p, .section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.filter-count, .section-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.filter-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1.45fr auto auto; gap: 10px; align-items: end; margin-top: 16px; }
.filter-form label { display: grid; gap: 5px; color: #46555D; font-size: 12px; font-weight: 600; }
.filter-form select, .filter-form input {
    width: 100%; min-width: 0; height: 39px; padding: 0 10px;
    color: var(--text); background: #fff; border: 1px solid #CBD4D9; border-radius: 4px; outline: none;
}
.filter-form select:focus, .filter-form input:focus { border-color: var(--blue-gray); box-shadow: 0 0 0 3px rgba(43,110,125,.12); }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 7px 15px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 700; cursor: pointer; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { color: #fff; background: #A94114; }
.button-light { background: #F4F6F7; border-color: var(--line); color: #44535B; }
.button-light:hover { background: #E9EEF0; color: var(--ink); }
.content-section { margin-top: 30px; }
.section-heading { margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px solid #D9E0E4; }
.section-heading h2 { font-size: 22px; }
.movie-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.movie-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s ease, transform .18s ease; }
.movie-card:hover { border-color: #9CB5BD; transform: translateY(-2px); }
.poster-link { position: relative; display: block; overflow: hidden; background: #E7ECEF; aspect-ratio: 2 / 3; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.movie-card:hover .poster { transform: scale(1.025); }
.poster-badge, .detail-poster-badge { position: absolute; top: 9px; left: 0; padding: 3px 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.movie-card-body { padding: 10px 10px 12px; }
.movie-card h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.45; }
.movie-card h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.movie-meta { margin: 4px 0 6px; color: #71808A; font-size: 11px; }
.movie-summary { min-height: 58px; margin: 0; color: #52616A; font-size: 12px; line-height: 1.6; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag { padding: 1px 6px; color: #52636B; background: #F0F3F4; border-radius: 3px; font-size: 10px; line-height: 1.7; }
.results-section { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state { padding: 42px 20px; text-align: center; background: var(--paper); border: 1px dashed #C8D2D7; border-radius: var(--radius); }
.empty-state strong { color: var(--ink); font-size: 18px; }
.empty-state p { color: var(--muted); margin: 8px 0 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.feature-card { position: relative; min-height: 170px; padding: 19px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-number { color: #C5D3D8; font-size: 25px; font-weight: 800; line-height: 1; }
.feature-card h3 { margin: 11px 0 6px; color: var(--ink); font-size: 16px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.topic-card { padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.topic-card h3 { margin: 0; color: var(--ink); font-size: 17px; }
.topic-card p { min-height: 66px; margin: 7px 0 12px; color: var(--muted); font-size: 13px; }
.topic-links { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-links a { padding: 3px 7px; color: var(--blue-gray); background: #F0F6F7; border-radius: 3px; font-size: 11px; }
.ranking-layout { display: grid; grid-template-columns: .85fr 1.5fr; gap: 25px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ranking-intro h2 { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.4; }
.ranking-intro > p:last-child { color: var(--muted); font-size: 13px; }
.ranking-list { border-top: 1px solid var(--soft-line); }
.ranking-item { display: flex; align-items: center; gap: 13px; padding: 11px 3px; border-bottom: 1px solid var(--soft-line); }
.rank-index { width: 30px; color: var(--accent); font-size: 19px; font-weight: 800; }
.rank-main { min-width: 0; flex: 1; }
.rank-main strong, .rank-main small { display: block; }
.rank-main strong { color: var(--ink); font-size: 14px; }
.rank-main small { overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.rank-arrow { color: #91A2AA; font-size: 20px; }
.access-section { padding: 21px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.access-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 25px; }
.access-copy h3, .access-checklist h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; }
.access-copy p { margin: 0 0 9px; color: #53626A; font-size: 13px; }
.access-checklist { padding: 16px 18px; background: #F4F8F9; border-radius: var(--radius); }
.access-checklist ul { margin: 0; padding-left: 19px; color: #53626A; font-size: 13px; }
.access-checklist li { margin: 4px 0; }
.legal-note { margin-top: 25px; padding: 15px 18px; background: #FFF8F3; border: 1px solid #F0D7C8; border-left: 3px solid var(--accent); border-radius: 4px; }
.legal-note strong { color: #8F3C18; font-size: 13px; }
.legal-note p { margin: 4px 0 0; color: #70584C; font-size: 12px; }
.site-footer { padding: 32px 0 17px; background: var(--night); color: #D8E1E4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 40px; }
.footer-brand { color: #fff; font-size: 21px; font-weight: 800; }
.footer-grid p { max-width: 410px; margin: 8px 0 0; color: #AAB9BF; font-size: 12px; }
.footer-grid h2 { margin: 0 0 9px; color: #fff; font-size: 14px; }
.footer-grid a:not(.footer-brand) { display: block; margin: 5px 0; color: #B8C7CC; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 25px; padding-top: 13px; border-top: 1px solid #263B43; color: #82949C; font-size: 11px; }
.breadcrumb { display: flex; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--blue-gray); }
.detail-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 27px; padding: 23px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-poster-wrap { position: relative; overflow: hidden; align-self: start; aspect-ratio: 2 / 3; background: #E6ECEF; border-radius: 4px; }
.detail-poster { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { margin: 0; color: var(--ink); font-size: 30px; line-height: 1.35; }
.detail-lead { max-width: 800px; margin: 11px 0 15px; color: #52616A; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags span { padding: 3px 8px; background: #F0F4F5; color: var(--blue-gray); border: 1px solid #E0E8EA; border-radius: 3px; font-size: 11px; font-weight: 600; }
.detail-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--soft-line); }
.detail-facts small, .detail-facts strong { display: block; }
.detail-facts small { color: #7B8990; font-size: 11px; }
.detail-facts strong { margin-top: 3px; color: var(--ink); font-size: 13px; }
.player-section { margin-top: 27px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.video-frame { overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; }
.player-unavailable { display: flex; align-items: center; gap: 17px; min-height: 150px; padding: 22px; background: #101F26; color: #fff; }
.player-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; color: #fff; background: var(--accent); border-radius: 50%; }
.player-unavailable strong { font-size: 16px; }
.player-unavailable p { margin: 5px 0 0; color: #B9C7CC; font-size: 13px; }
.prose { max-width: 900px; padding: 3px 0; color: #45545C; font-size: 14px; line-height: 2; }
.detail-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 12px; }
.error-state { margin: 45px auto; max-width: 650px; }
.error-code { display: block; color: var(--accent); font-size: 54px; font-weight: 800; line-height: 1.1; }
.error-state h1 { margin: 10px 0 0; color: var(--ink); font-size: 25px; }
@media (max-width: 1050px) {
    .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filter-form .button { width: 100%; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .container { width: min(100% - 28px, var(--container)); }
    .header-inner { min-height: 66px; }
    .header-note { display: none; }
    .nav-inner { gap: 20px; min-height: 43px; }
    .page-main { padding-top: 17px; padding-bottom: 42px; }
    .hero-intro { grid-template-columns: 1fr; gap: 17px; padding: 20px; }
    .hero-copy h1 { font-size: 25px; }
    .hero-side { padding: 13px 15px; }
    .filter-panel { padding: 16px; }
    .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-form .search-label { grid-column: 1 / -1; }
    .filter-form .button { min-height: 42px; }
    .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .movie-card-body { padding: 8px; }
    .movie-card h3 { font-size: 13px; }
    .movie-summary { min-height: 55px; font-size: 11px; }
    .section-heading h2 { font-size: 19px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
    .ranking-layout { grid-template-columns: 1fr; gap: 10px; padding: 17px; }
    .access-grid { grid-template-columns: 1fr; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 23px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 5px; }
    .detail-hero { grid-template-columns: 130px minmax(0, 1fr); gap: 15px; padding: 15px; }
    .detail-info h1 { font-size: 23px; }
    .detail-lead { margin: 7px 0 10px; font-size: 13px; }
    .detail-facts { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 14px; padding-top: 11px; }
    .detail-tags { gap: 5px; }
    .detail-tags span { font-size: 10px; }
    .player-section { padding: 14px; }
}
@media (max-width: 430px) {
    .brand strong { font-size: 19px; }
    .brand small { font-size: 10px; }
    .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .movie-card h3 { font-size: 14px; }
    .topic-grid { grid-template-columns: 1fr; }
    .topic-card p { min-height: 0; }
    .filter-form { grid-template-columns: 1fr 1fr; }
    .filter-heading { align-items: flex-start; }
    .filter-count { padding-top: 5px; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-poster-wrap { width: 46%; max-width: 190px; }
    .detail-bottom { align-items: flex-start; flex-direction: column; }
    .player-unavailable { 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; }
}
