/* 网飞猫：暗夜影视索引界面 */
:root {
    color-scheme: dark;
    --accent: #F25C36;
    --steel: #232B3A;
    --deep: #080A0E;
    --background: #0E1117;
    --surface: #161B24;
    --text: #F1F5F9;
    --muted: #94A3B8;
    --cyan: #38BDF8;
    --line: rgba(148, 163, 184, .16);
    --radius-small: 7px;
    --radius-card: 10px;
    --content-width: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body {
    margin: 0;
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}
img { display: block; max-width: 100%; }
.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 {
    width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px;
    left: 12px; top: 12px; z-index: 1000; background: var(--surface);
}
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(8, 10, 14, .94);
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    backdrop-filter: blur(18px);
}
.header-inner {
    width: min(var(--content-width), calc(100% - 48px));
    min-height: 72px; margin: auto; display: flex; align-items: center; gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 9px; }
.brand strong { display: block; font-size: 19px; line-height: 1.25; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.main-nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.main-nav a { height: 100%; display: inline-flex; align-items: center; color: #B5BFCD; font-size: 14px; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; height: 2px; background: var(--accent); position: absolute; bottom: 0; left: 0; right: 0; }
.header-download {
    margin-left: auto; display: inline-flex; align-items: center; gap: 12px;
    border: 1px solid rgba(56, 189, 248, .35); color: var(--cyan);
    padding: 8px 14px; border-radius: var(--radius-small); font-size: 13px;
    transition: background .2s ease, border-color .2s ease;
}
.header-download:hover { background: rgba(56, 189, 248, .09); border-color: var(--cyan); }
.page-shell { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; }
.discovery-panel {
    margin-top: 28px; min-height: 226px; padding: 32px 38px;
    display: grid; grid-template-columns: 1fr 240px; align-items: center; gap: 28px;
    overflow: hidden; position: relative; border: 1px solid var(--line);
    border-radius: 12px; background:
        radial-gradient(ellipse at 80% 20%, rgba(242, 92, 54, .13), transparent 36%),
        linear-gradient(115deg, #171D27 0%, #111722 56%, #151A23 100%);
}
.discovery-panel::after {
    content: ""; position: absolute; width: 300px; height: 300px; right: 120px; top: -210px;
    border: 1px solid rgba(242, 92, 54, .14); border-radius: 50%; pointer-events: none;
}
.eyebrow, .section-kicker {
    display: inline-flex; align-items: center; gap: 8px; color: var(--cyan);
    font-size: 12px; letter-spacing: .04em; font-weight: 650;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(242, 92, 54, .6); }
.discovery-copy h1 { margin: 11px 0 8px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.3; }
.discovery-copy p { margin: 0; max-width: 680px; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.button {
    min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    padding: 9px 16px; border-radius: var(--radius-small); font-size: 13px; font-weight: 650;
    border: 1px solid transparent; transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button-primary { color: #fff; background: var(--accent); }
.button-secondary { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.035); }
.button-cyan { color: #07131B; background: var(--cyan); }
.discovery-side {
    position: relative; z-index: 1; min-height: 156px; display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center; padding-left: 30px;
    border-left: 1px solid var(--line);
}
.side-icon {
    width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px;
    color: white; background: var(--accent); font-size: 13px; margin-bottom: 10px;
}
.discovery-side strong { font-size: 15px; }
.discovery-side > span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.device-line { display: flex; gap: 6px; margin-top: 13px; }
.device-line span { border: 1px solid rgba(56,189,248,.23); color: var(--cyan); background: rgba(56,189,248,.07); padding: 2px 8px; border-radius: 4px; font-size: 10px; }
.search-section { margin-top: 22px; }
.search-form {
    height: 52px; display: flex; align-items: center; gap: 12px; padding: 5px 6px 5px 17px;
    border: 1px solid rgba(148,163,184,.2); border-radius: 9px; background: var(--surface);
}
.search-form:focus-within { border-color: rgba(56,189,248,.65); box-shadow: 0 0 0 3px rgba(56,189,248,.08); }
.search-symbol { color: var(--cyan); font-size: 26px; line-height: 1; transform: rotate(-15deg); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 14px; }
.search-form input::placeholder { color: #718096; }
.search-form button {
    min-width: 100px; height: 40px; border: 0; border-radius: 6px;
    color: white; background: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer;
}
.category-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.category-chip {
    display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 5px;
    background: var(--steel); color: #C1CAD6; border: 1px solid transparent; font-size: 12px;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.category-chip:hover { color: white; border-color: rgba(56,189,248,.35); }
.category-chip.selected { color: #fff; background: rgba(242,92,54,.16); border-color: rgba(242,92,54,.55); }
.catalog-section { margin-top: 34px; }
.section-heading, .rail-heading {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px;
}
.section-heading h2, .rail-heading h2, .about-section h2, .device-copy h2 {
    margin: 4px 0 0; font-size: 22px; line-height: 1.35; letter-spacing: -.025em;
}
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.result-count { color: var(--muted); font-size: 12px; white-space: nowrap; padding-bottom: 4px; }
.media-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 14px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid rgba(148,163,184,.12); border-radius: var(--radius-card); background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.media-card:hover { border-color: rgba(242,92,54,.5); transform: translateY(-3px); }
.poster-wrap { aspect-ratio: 2 / 3; position: relative; overflow: hidden; background: #202735; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-card:hover .poster { transform: scale(1.035); }
.poster-status {
    position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
    padding: 3px 7px; border-radius: 4px; background: rgba(8,10,14,.82);
    color: #E6EDF5; font-size: 10px; line-height: 1.5; backdrop-filter: blur(8px);
}
.media-info { padding: 10px 10px 12px; }
.media-meta { display: flex; justify-content: space-between; gap: 5px; color: var(--cyan); font-size: 10px; }
.media-meta span:last-child { color: #728197; }
.media-info h3 { margin: 5px 0 4px; font-size: 13px; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
.media-info p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.catalog-note { margin: 14px 0 0; color: #718096; font-size: 11px; }
.pagination { display: flex; justify-content: center; gap: 7px; margin: 25px 0 0; }
.page-link { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; }
.page-link:hover, .page-link.current { color: white; border-color: var(--accent); background: rgba(242,92,54,.14); }
.empty-state { padding: 48px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; background: rgba(22,27,36,.45); }
.empty-mark { color: var(--cyan); font-size: 38px; }
.empty-state h3 { margin: 8px 0 2px; font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.category-rails { margin-top: 42px; }
.rail-heading { margin-bottom: 15px; }
.rail-heading > a { color: var(--cyan); font-size: 12px; }
.rail-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.rail-card {
    min-height: 132px; position: relative; overflow: hidden; padding: 17px 18px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
    display: flex; flex-direction: column; justify-content: flex-end; transition: border-color .2s ease, transform .2s ease;
}
.rail-card::before { content: ""; position: absolute; width: 110px; height: 110px; right: -26px; top: -40px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.rail-card:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.45); }
.rail-number { position: absolute; top: 13px; left: 17px; color: #728197; font: 11px/1.2 ui-monospace, monospace; }
.rail-card strong { font-size: 18px; }
.rail-card small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.rail-card b { position: absolute; right: 16px; bottom: 18px; color: var(--cyan); font-weight: 400; }
.rail-film { background: linear-gradient(135deg, #20242D, #171B24); }
.rail-series { background: linear-gradient(135deg, #202B38, #171B24); }
.rail-anime { background: linear-gradient(135deg, #28253A, #171B24); }
.rail-variety { background: linear-gradient(135deg, #34251F, #171B24); }
.multi-device-band {
    margin-top: 38px; padding: 24px 28px; display: grid; grid-template-columns: 150px 1fr auto;
    align-items: center; gap: 24px; border: 1px solid rgba(56,189,248,.2); border-radius: 11px;
    background: linear-gradient(105deg, rgba(56,189,248,.08), rgba(22,27,36,.95) 45%, rgba(242,92,54,.06));
}
.device-art { height: 96px; position: relative; display: flex; align-items: center; justify-content: center; }
.device-screen { width: 105px; height: 68px; border: 3px solid #718096; border-radius: 7px; background: linear-gradient(145deg,#25384B,#111923); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.device-screen::after { content: ""; position: absolute; width: 34px; height: 4px; left: calc(50% - 17px); bottom: 8px; border-radius: 4px; background: #718096; }
.device-phone { position: absolute; width: 30px; height: 55px; right: 3px; bottom: 7px; border: 2px solid #A6B2C2; border-radius: 7px; background: #182330; }
.device-phone::after { content: ""; position: absolute; width: 8px; height: 2px; left: 9px; top: 4px; background: #718096; border-radius: 2px; }
.device-copy p { margin: 6px 0 0; max-width: 620px; color: var(--muted); font-size: 12px; }
.about-section { margin: 40px 0 50px; padding: 25px 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-section p { max-width: 640px; margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.about-facts { display: grid; grid-template-columns: repeat(3,1fr); align-items: center; gap: 12px; }
.about-facts div { display: flex; flex-direction: column; gap: 5px; padding-left: 14px; border-left: 1px solid var(--line); }
.about-facts strong { color: var(--accent); font: 19px/1.2 ui-monospace, monospace; }
.about-facts span { color: #B8C2D0; font-size: 11px; }
.site-footer { background: var(--deep); border-top: 1px solid rgba(148,163,184,.12); }
.footer-inner { width: min(var(--content-width), calc(100% - 48px)); margin: auto; padding: 28px 0 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px 28px; }
.footer-logo { color: white; font-size: 17px; font-weight: 750; }
.footer-brand p { max-width: 520px; margin: 5px 0 0; color: #8491A3; font-size: 11px; }
.footer-links { display: flex; align-items: flex-start; gap: 20px; color: #AAB5C4; font-size: 12px; }
.footer-links a:hover { color: var(--cyan); }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 13px; border-top: 1px solid rgba(148,163,184,.1); color: #687589; font-size: 10px; }
.breadcrumb { padding: 18px 0 0; }
.breadcrumb ol { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 12px; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #566274; }
.breadcrumb a:hover { color: var(--cyan); }
.download-intro {
    min-height: 250px; margin-top: 22px; padding: 35px 42px; display: grid;
    grid-template-columns: 1fr 220px; align-items: center; gap: 20px; overflow: hidden;
    border: 1px solid var(--line); border-radius: 12px;
    background: radial-gradient(circle at 82% 45%, rgba(56,189,248,.12), transparent 24%), linear-gradient(120deg,#191F2A,#111720);
}
.download-intro h1 { margin: 9px 0 8px; font-size: clamp(26px,3vw,35px); line-height: 1.3; letter-spacing: -.04em; }
.download-intro p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; }
.download-intro .button { margin-top: 20px; }
.download-orbit { width: 150px; height: 150px; margin: auto; position: relative; display: grid; place-items: center; border: 1px solid rgba(56,189,248,.35); border-radius: 50%; box-shadow: 0 0 55px rgba(56,189,248,.08), inset 0 0 30px rgba(56,189,248,.06); }
.download-orbit::before, .download-orbit::after { content: ""; position: absolute; border: 1px solid rgba(242,92,54,.3); border-radius: 50%; }
.download-orbit::before { inset: 17px; }
.download-orbit::after { inset: -12px 30px; transform: rotate(42deg); }
.orbit-core { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--accent); color: white; font-size: 27px; font-weight: 800; box-shadow: 0 8px 25px rgba(242,92,54,.25); }
.download-orbit i, .download-orbit b { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.download-orbit i { right: 13px; top: 29px; }
.download-orbit b { left: 7px; bottom: 41px; background: var(--accent); }
.download-options { margin-top: 36px; }
.download-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.download-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.download-card-top { display: flex; justify-content: space-between; align-items: center; }
.download-badge { min-width: 42px; padding: 5px 10px; text-align: center; color: var(--cyan); border: 1px solid rgba(56,189,248,.3); background: rgba(56,189,248,.08); border-radius: 5px; font-size: 12px; font-weight: 750; }
.download-card-label { color: var(--muted); font-size: 11px; }
.download-card h3 { margin: 14px 0 6px; font-size: 19px; }
.download-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 12px; }
.download-card ul { display: grid; gap: 7px; list-style: none; margin: 17px 0; padding: 0; }
.download-card li { display: flex; gap: 8px; color: #C0CAD7; font-size: 12px; }
.download-card li span { color: var(--cyan); }
.download-unavailable { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border: 1px solid rgba(242,92,54,.22); border-radius: 6px; background: rgba(242,92,54,.06); }
.download-unavailable strong { color: #F49A7F; font-size: 12px; }
.download-unavailable span { color: var(--muted); font-size: 11px; }
.install-guide { margin-top: 42px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 10px; background: rgba(22,27,36,.55); }
.guide-heading h2 { margin: 5px 0 4px; font-size: 21px; }
.guide-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.guide-list { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 26px; }
.guide-item { display: flex; gap: 13px; }
.guide-item > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--cyan); background: rgba(56,189,248,.1); font: 12px ui-monospace, monospace; }
.guide-item h3 { margin: 0 0 3px; font-size: 13px; }
.guide-item p { margin: 0; color: var(--muted); font-size: 11px; }
.download-return { margin: 30px 0 48px; padding: 21px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.download-return h2 { margin: 0; font-size: 17px; }
.download-return p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.error-page { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.error-code { color: var(--accent); font: 800 clamp(80px,15vw,150px)/1 ui-monospace, monospace; letter-spacing: -.08em; }
.error-page h1 { margin: 18px 0 4px; font-size: 24px; }
.error-page p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
@media (max-width: 1050px) {
    .media-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .header-inner { gap: 25px; }
}
@media (max-width: 800px) {
    .header-inner, .page-shell, .footer-inner { width: min(100% - 32px, var(--content-width)); }
    .header-inner { min-height: 64px; gap: 18px; }
    .main-nav { height: 64px; gap: 16px; }
    .brand strong { font-size: 17px; }
    .brand img { width: 38px; height: 38px; }
    .header-download { padding: 7px 10px; font-size: 11px; }
    .discovery-panel { grid-template-columns: 1fr 190px; padding: 26px; }
    .discovery-side { padding-left: 20px; }
    .media-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .multi-device-band { grid-template-columns: 110px 1fr; }
    .multi-device-band > .button { grid-column: 2; justify-self: start; }
    .device-art { transform: scale(.85); transform-origin: center; }
    .about-section { grid-template-columns: 1fr; gap: 22px; }
    .about-facts { max-width: 600px; }
}
@media (max-width: 560px) {
    .header-inner { width: calc(100% - 28px); gap: 12px; }
    .brand { gap: 7px; }
    .brand img { width: 34px; height: 34px; }
    .brand strong { font-size: 15px; }
    .brand small { font-size: 9px; }
    .main-nav { gap: 12px; margin-left: auto; }
    .main-nav a { font-size: 11px; }
    .header-download { display: none; }
    .page-shell, .footer-inner { width: calc(100% - 28px); }
    .discovery-panel { margin-top: 16px; min-height: 0; display: block; padding: 23px 19px; }
    .discovery-copy h1 { font-size: 24px; }
    .discovery-copy p { font-size: 12px; }
    .discovery-side { display: none; }
    .hero-actions { margin-top: 17px; }
    .button { min-height: 39px; padding: 8px 12px; font-size: 12px; }
    .search-section { margin-top: 17px; }
    .search-form { height: 48px; gap: 8px; padding-left: 12px; }
    .search-form button { min-width: 75px; height: 36px; font-size: 11px; }
    .search-form input { font-size: 12px; }
    .category-list { gap: 6px; }
    .category-chip { padding: 4px 11px; font-size: 11px; }
    .catalog-section { margin-top: 27px; }
    .section-heading h2, .rail-heading h2, .about-section h2, .device-copy h2 { font-size: 19px; }
    .media-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 9px; }
    .media-info { padding: 8px 7px 9px; }
    .media-info h3 { font-size: 11px; }
    .media-info p { font-size: 10px; -webkit-line-clamp: 2; }
    .media-meta { font-size: 9px; }
    .poster-status { left: 5px; bottom: 5px; padding: 2px 5px; font-size: 9px; }
    .category-rails { margin-top: 32px; }
    .rail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .rail-card { min-height: 112px; padding: 14px; }
    .multi-device-band { margin-top: 28px; padding: 18px; display: block; }
    .device-art { display: none; }
    .multi-device-band > .button { margin-top: 15px; }
    .about-section { margin: 30px 0 35px; padding: 20px 2px; }
    .about-facts { gap: 6px; }
    .about-facts div { padding-left: 8px; }
    .about-facts span { font-size: 9px; }
    .footer-inner { grid-template-columns: 1fr; padding-top: 23px; }
    .footer-links { gap: 15px; }
    .copyright { grid-column: auto; }
    .download-intro { min-height: 0; margin-top: 16px; padding: 25px 20px; display: block; }
    .download-intro h1 { font-size: 25px; }
    .download-intro p { font-size: 12px; }
    .download-orbit { display: none; }
    .download-grid, .guide-list { grid-template-columns: 1fr; }
    .download-card { padding: 18px; }
    .download-card > p { min-height: 0; }
    .install-guide { padding: 20px 17px; }
    .download-return { align-items: flex-start; flex-direction: column; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
