/* 影视大全：清爽影库索引视觉系统 */
:root {
    --ink: #1A242B;
    --muted: #5A6872;
    --brand: #143642;
    --brand-soft: #2B6E7D;
    --night: #0B1920;
    --canvas: #F5F6F8;
    --paper: #FFFFFF;
    --accent: #C85019;
    --line: #DDE3E7;
    --line-dark: #C9D3D9;
    --radius: 5px;
    --content: 1240px;
    --shadow: 0 2px 10px rgba(20, 54, 66, .045);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
    margin: 0;
    color: var(--ink);
    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(--brand-soft); }
button, input { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.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 {
    position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 8px 14px;
    color: #fff; background: var(--night); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
    position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 4px; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { color: var(--brand); font-size: 21px; 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: 26px; margin-right: auto; }
.main-nav a { color: #33434B; font-size: 14px; font-weight: 650; padding: 26px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--brand); border-color: var(--accent); }
.header-search { display: flex; height: 38px; border: 1px solid var(--line-dark); border-radius: 4px; overflow: hidden; }
.header-search input { width: 174px; min-width: 0; border: 0; outline: 0; padding: 0 11px; color: var(--ink); background: #fff; font-size: 13px; }
.header-search button { border: 0; padding: 0 15px; color: #fff; background: var(--brand); font-size: 13px; }
.header-search button:hover { background: var(--brand-soft); }
.nav-toggle, .mobile-nav { display: none; }
.hero-strip { background: #fff; border-bottom: 1px solid var(--line); }
.hero-inner { min-height: 224px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: center; gap: 44px; padding-block: 30px; }
.eyebrow, .section-kicker { display: inline-block; color: var(--brand-soft); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.hero-copy h1 { margin: 7px 0 8px; color: var(--brand); font-size: clamp(27px, 3vw, 36px); line-height: 1.25; letter-spacing: -.025em; }
.hero-lead { max-width: 700px; margin: 0; color: var(--muted); font-size: 15px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.hero-points span { padding: 4px 10px; border: 1px solid #DCE7EA; border-radius: 4px; color: var(--brand); background: #F6FAFB; font-size: 12px; }
.hero-note { padding: 18px 20px; border: 1px solid #D9E3E6; border-left: 3px solid var(--accent); border-radius: var(--radius); background: #F8FAFB; }
.hero-note strong { color: var(--brand); font-size: 16px; }
.hero-note p { margin: 5px 0 12px; color: var(--muted); font-size: 13px; }
.hero-note a { color: var(--accent); font-size: 13px; font-weight: 750; }
.filter-panel { margin-top: 24px; padding: 19px 22px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.filter-heading, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.filter-heading h2 { margin: 2px 0 0; color: var(--brand); font-size: 19px; line-height: 1.4; }
.result-count, .section-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.filter-links { display: flex; gap: 8px; margin-top: 15px; }
.filter-links a { padding: 5px 14px; border: 1px solid var(--line); border-radius: 4px; color: #42525B; background: #fff; font-size: 13px; }
.filter-links a:hover, .filter-links a.is-active { color: #fff; border-color: var(--brand); background: var(--brand); }
.catalog-search { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #EDF0F2; }
.catalog-search label { color: var(--muted); font-size: 13px; white-space: nowrap; }
.catalog-search input { width: min(380px, 45%); height: 38px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 4px; outline: none; background: #fff; }
.catalog-search input:focus, .header-search:focus-within { border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(43,110,125,.1); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 8px 16px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 700; transition: background .18s ease, border-color .18s ease; }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover { color: #fff; background: var(--brand-soft); }
.clear-filter { color: var(--muted); font-size: 13px; }
.content-section { margin-top: 31px; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { margin: 3px 0 2px; color: var(--brand); font-size: 22px; line-height: 1.35; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 750; white-space: nowrap; }
.movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 17px 14px; }
.movie-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .18s ease, transform .18s ease; }
.movie-card:hover { border-color: #A9BEC5; transform: translateY(-2px); }
.poster-link { position: relative; display: block; overflow: hidden; background: #E8ECEF; aspect-ratio: 2 / 3; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.movie-card:hover .poster { transform: scale(1.025); }
.poster-mark { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 3px; color: #fff; background: var(--accent); font-size: 10px; font-weight: 750; }
.movie-card-body { padding: 9px 10px 11px; }
.movie-card h3 { overflow: hidden; margin: 0; color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.movie-card h3 a:hover { color: var(--accent); }
.movie-meta { margin: 3px 0 6px; color: var(--muted); font-size: 11px; }
.badge-row, .detail-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-block; padding: 1px 6px; border: 1px solid #DCE6E9; border-radius: 3px; color: var(--brand-soft); background: #F5F9FA; font-size: 10px; line-height: 1.65; }
.movie-summary { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: #65727A; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.empty-state { padding: 36px 20px; border: 1px dashed var(--line-dark); border-radius: var(--radius); background: #fff; text-align: center; }
.empty-state strong { color: var(--brand); font-size: 17px; }
.empty-state p { margin: 5px 0 12px; color: var(--muted); font-size: 13px; }
.empty-state a { color: var(--accent); font-weight: 700; }
.special-section { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.special-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.special-card { display: flex; min-width: 0; gap: 13px; padding: 10px; border: 1px solid #E6EAED; border-radius: 4px; background: #FAFBFC; }
.special-card:hover { border-color: #A9BEC5; background: #fff; }
.special-card img { width: 76px; aspect-ratio: 2 / 3; flex: 0 0 auto; object-fit: cover; border-radius: 3px; }
.special-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.special-copy strong { color: var(--brand); font-size: 15px; }
.special-copy small { margin: 2px 0 5px; color: var(--accent); font-size: 11px; }
.special-copy > span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.collection-card { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.collection-top { display: flex; align-items: center; justify-content: space-between; color: var(--brand-soft); font-size: 11px; }
.collection-top strong { color: var(--muted); font-weight: 500; }
.collection-card h3 { margin: 7px 0 5px; color: var(--brand); font-size: 17px; }
.collection-card > p { min-height: 62px; margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.collection-items { border-top: 1px solid #EDF0F2; }
.collection-items a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 0; border-bottom: 1px solid #F0F2F3; color: #35464E; font-size: 12px; }
.collection-items a:last-child { border-bottom: 0; }
.collection-items a span { color: #8A969C; font-size: 10px; white-space: nowrap; }
.guide-section { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: 28px; margin-top: 31px; margin-bottom: 42px; padding: 23px 25px; border-radius: var(--radius); color: #EAF1F3; background: var(--brand); }
.guide-main h2 { margin: 4px 0 9px; color: #fff; font-size: 22px; }
.guide-main .section-kicker { color: #B7D4DA; }
.guide-main p { margin: 7px 0; color: #D2E0E4; font-size: 13px; }
.guide-aside { padding: 15px 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; background: rgba(255,255,255,.06); }
.guide-aside h3 { margin: 0 0 8px; color: #fff; font-size: 15px; }
.guide-aside ul { margin: 0; padding-left: 18px; color: #D2E0E4; font-size: 12px; }
.guide-aside li { margin: 4px 0; }
.site-footer { padding: 30px 0 15px; color: #D6E1E4; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 38px; padding-bottom: 23px; }
.footer-grid h2 { margin: 0 0 8px; color: #fff; font-size: 14px; }
.footer-grid p { max-width: 430px; margin: 6px 0; color: #AFC0C5; font-size: 12px; }
.footer-grid a:not(.footer-title) { display: block; margin: 5px 0; color: #C8D6DA; font-size: 12px; }
.footer-title { color: #fff; font-size: 20px; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); color: #8FA4AA; font-size: 11px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 19px 0; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--brand-soft); }
.detail-page { padding-bottom: 45px; }
.detail-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; padding: 23px; 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: #E7ECEF; }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.detail-status { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 3px; color: #fff; background: var(--accent); font-size: 11px; }
.detail-eyebrow { color: var(--brand-soft); font-size: 12px; font-weight: 750; }
.detail-content h1 { margin: 5px 0 9px; color: var(--brand); font-size: 32px; line-height: 1.3; }
.detail-summary { max-width: 800px; margin: 0 0 13px; color: var(--muted); font-size: 15px; }
.detail-badges { margin-bottom: 17px; }
.detail-badges .badge { font-size: 11px; padding: 3px 8px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 0 0 18px; border-top: 1px solid #E9EDEF; }
.info-grid > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid #E9EDEF; font-size: 13px; }
.info-grid dt { color: #849198; }
.info-grid dd { margin: 0; color: #35454D; font-weight: 600; }
.info-grid .info-wide { grid-column: 1 / -1; }
.play-notice { margin: 18px 0; padding: 14px 16px; border: 1px solid #E8D8C9; border-left: 3px solid var(--accent); border-radius: 4px; background: #FFFAF6; }
.play-notice strong { color: #87401F; font-size: 14px; }
.play-notice p { margin: 4px 0 0; color: #755F52; font-size: 12px; }
.detail-description { margin-top: 26px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-description > p { color: #43525A; font-size: 14px; line-height: 1.9; }
.detail-description h3 { margin: 20px 0 8px; color: var(--brand); font-size: 17px; }
.highlight-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.highlight-list li { padding: 11px 12px; border: 1px solid #E5EAED; border-radius: 4px; color: #43525A; background: #FAFBFC; font-size: 12px; }
.version-note { padding-top: 12px; border-top: 1px solid #EDF0F2; color: #87939A !important; font-size: 11px !important; }
.related-section { margin-bottom: 10px; }
.error-page { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-code { color: #DCE6E9; font-size: clamp(76px, 13vw, 140px); font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.error-page h1 { margin: 10px 0 5px; color: var(--brand); font-size: 25px; }
.error-page p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) {
    .header-inner { gap: 19px; }
    .main-nav { gap: 16px; }
    .movie-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .container { width: min(100% - 30px, var(--content)); }
    .header-inner { min-height: 66px; gap: 12px; }
    .main-nav { display: none; }
    .header-search { margin-left: auto; }
    .header-search input { width: 150px; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--brand); background: #fff; font-size: 12px; }
    .mobile-nav { display: flex; gap: 0; padding: 7px 15px 12px; border-top: 1px solid #EDF0F2; background: #fff; }
    .mobile-nav[hidden] { display: none; }
    .mobile-nav a { flex: 1; padding: 7px 3px; color: var(--brand); text-align: center; font-size: 13px; }
    .hero-inner { grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; }
    .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 11px; }
    .detail-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 17px; }
    .highlight-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    html { scroll-padding-top: 70px; }
    .container { width: calc(100% - 24px); }
    .brand img { width: 36px; height: 36px; }
    .brand strong { font-size: 18px; }
    .brand small { font-size: 10px; }
    .header-inner { flex-wrap: wrap; padding-block: 9px; }
    .header-search { order: 3; width: 100%; height: 36px; margin: 0; }
    .header-search input { flex: 1; width: auto; }
    .nav-toggle { margin-left: auto; }
    .mobile-nav { padding-inline: 8px; }
    .hero-inner { grid-template-columns: 1fr; gap: 17px; padding-block: 24px; }
    .hero-copy h1 { font-size: 27px; }
    .hero-lead { font-size: 13px; }
    .hero-note { padding: 13px 15px; }
    .filter-panel { margin-top: 14px; padding: 15px 13px; }
    .filter-heading { align-items: flex-start; }
    .filter-heading h2 { font-size: 17px; }
    .result-count { padding-top: 12px; font-size: 10px; }
    .catalog-search { flex-wrap: wrap; }
    .catalog-search label { width: 100%; }
    .catalog-search input { flex: 1; width: 100%; }
    .content-section { margin-top: 25px; }
    .section-heading { align-items: flex-start; }
    .section-heading h2 { font-size: 19px; }
    .section-heading p { max-width: 290px; font-size: 12px; }
    .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
    .movie-card-body { padding: 7px 7px 9px; }
    .movie-card h3 { font-size: 12px; }
    .movie-meta { font-size: 10px; }
    .badge { font-size: 9px; padding-inline: 4px; }
    .movie-summary { font-size: 10px; }
    .special-section { padding: 14px 11px; }
    .special-grid { grid-template-columns: 1fr; gap: 8px; }
    .special-card img { width: 67px; }
    .collection-grid { grid-template-columns: 1fr; gap: 9px; }
    .collection-card { padding: 13px; }
    .collection-card > p { min-height: 0; }
    .guide-section { grid-template-columns: 1fr; gap: 15px; margin-top: 24px; padding: 18px 15px; }
    .guide-main h2 { font-size: 19px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 3px; }
    .breadcrumb { padding: 13px 0; }
    .detail-layout { grid-template-columns: 112px minmax(0, 1fr); gap: 13px; padding: 12px; }
    .detail-content h1 { font-size: 22px; }
    .detail-summary { font-size: 12px; line-height: 1.6; }
    .detail-badges { margin-bottom: 9px; }
    .detail-badges .badge { font-size: 9px; }
    .info-grid { grid-template-columns: 1fr; }
    .info-grid > div { grid-template-columns: 72px minmax(0, 1fr); padding: 6px 0; font-size: 11px; }
    .info-grid .info-wide { grid-column: auto; }
    .play-notice { padding: 10px; }
    .play-notice p { font-size: 11px; }
    .detail-description { padding: 15px; }
    .detail-description > p { font-size: 13px; }
    .error-page { min-height: 360px; }
}
@media (max-width: 360px) {
    .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-poster-wrap { width: min(190px, 70%); margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
