/* 网飞猫：暗夜影视索引界面 */
:root {
    color-scheme: dark;
    --bg: #0E1117;
    --deep: #080A0E;
    --panel: #161B24;
    --panel-soft: #1B2230;
    --line: rgba(148, 163, 184, .16);
    --line-strong: rgba(148, 163, 184, .25);
    --text: #F1F5F9;
    --muted: #94A3B8;
    --primary: #F25C36;
    --primary-hover: #ff704d;
    --accent: #38BDF8;
    --radius: 10px;
    --content: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, 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; }
img { max-width: 100%; display: block; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 9px 14px; background: var(--primary); color: white; border-radius: 6px;
}
.skip-link:focus { top: 12px; }
.site-header {
    position: relative; z-index: 10; background: rgba(8, 10, 14, .96);
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.header-inner {
    width: min(var(--content), calc(100% - 48px)); min-height: 76px;
    margin: auto; display: flex; align-items: center; gap: 38px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: #222a38; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.brand-copy strong { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 4px; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 30px; height: 76px; }
.main-nav a { height: 100%; display: inline-flex; align-items: center; color: #aeb8c8; font-size: 14px; position: relative; transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after {
    content: ""; position: absolute; height: 2px; background: var(--primary);
    left: 0; right: 0; bottom: 0; border-radius: 3px;
}
.header-download {
    margin-left: auto; display: inline-flex; align-items: center; gap: 13px;
    padding: 9px 14px; border: 1px solid rgba(56,189,248,.35); border-radius: 7px;
    color: var(--accent); font-size: 13px; transition: .2s;
}
.header-download:hover { background: rgba(56,189,248,.09); border-color: var(--accent); }
.header-download b { font-size: 17px; font-weight: 500; }
.home-intro {
    padding-top: 34px; padding-bottom: 25px; display: flex; align-items: flex-end;
    justify-content: space-between; gap: 32px;
}
.eyebrow, .section-kicker {
    display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px rgba(242,92,54,.65); }
.intro-copy { max-width: 760px; }
.intro-copy h1 { margin: 10px 0 8px; font-size: clamp(25px, 3vw, 34px); line-height: 1.3; letter-spacing: -.04em; }
.intro-copy p { color: var(--muted); margin: 0; max-width: 740px; font-size: 14px; }
.intro-action {
    flex: 0 0 auto; min-width: 245px; display: flex; align-items: center; gap: 12px;
    padding: 13px 15px; border: 1px solid rgba(56,189,248,.25); background: rgba(56,189,248,.055);
    border-radius: 9px; transition: .2s;
}
.intro-action:hover { border-color: var(--accent); transform: translateY(-2px); }
.action-icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--accent); background: rgba(56,189,248,.12); border-radius: 7px; font-size: 20px; }
.intro-action span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.4; }
.intro-action strong { font-size: 13px; }
.intro-action small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.intro-action b { margin-left: auto; color: var(--accent); font-size: 20px; font-weight: 400; }
.search-panel {
    padding: 17px 19px 15px; border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(110deg, rgba(22,27,36,.98), rgba(19,25,35,.92));
}
.search-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.search-control {
    display: flex; align-items: center; gap: 12px; height: 48px; padding: 4px 5px 4px 14px;
    border: 1px solid rgba(148,163,184,.2); border-radius: 7px; background: #0e131c;
}
.search-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,.09); }
.search-icon { color: var(--accent); font-size: 25px; line-height: 1; transform: rotate(-15deg); }
.search-control input { min-width: 0; flex: 1; height: 100%; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-control input::placeholder { color: #657185; }
.search-control button {
    height: 38px; border: 0; border-radius: 5px; padding: 0 20px; color: #fff;
    background: var(--primary); cursor: pointer; font-size: 13px; font-weight: 700; transition: background .2s;
}
.search-control button:hover { background: var(--primary-hover); }
.category-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 13px; }
.category-label { color: var(--muted); font-size: 12px; margin-right: 4px; }
.category-chip {
    display: inline-flex; align-items: center; justify-content: center; min-width: 48px;
    padding: 4px 12px; border: 1px solid transparent; border-radius: 4px;
    background: #232B3A; color: #c3ccda; font-size: 12px; transition: .2s;
}
.category-chip:hover { color: white; border-color: rgba(56,189,248,.45); }
.category-chip.active { color: white; background: rgba(242,92,54,.17); border-color: rgba(242,92,54,.48); }
.catalog-section { margin-top: 34px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2, .about-heading h2, .guide-heading h2 {
    margin: 3px 0 0; font-size: 22px; line-height: 1.35; letter-spacing: -.025em;
}
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.section-kicker { font-size: 11px; color: var(--accent); }
.section-side-note, .result-count { color: var(--muted); font-size: 12px; padding-bottom: 3px; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 15px; }
.media-card { min-width: 0; }
.poster-wrap {
    position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 7px;
    background: #202735; border: 1px solid rgba(148,163,184,.13);
}
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media-card:hover .poster { transform: scale(1.035); }
.poster-wrap::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(4,7,11,.42)); pointer-events: none; }
.poster-badge {
    position: absolute; z-index: 1; top: 9px; left: 9px; padding: 2px 7px;
    color: #fff; background: rgba(8,10,14,.76); border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px; font-size: 10px; backdrop-filter: blur(6px);
}
.media-info { padding: 8px 1px 0; }
.media-info h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.media-meta { display: flex; align-items: center; gap: 8px; margin: 3px 0 4px; color: var(--accent); font-size: 10px; }
.media-meta span + span::before { content: "·"; color: #526074; margin-right: 8px; }
.media-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 39px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.category-section { padding-top: 1px; }
.compact-heading { margin-bottom: 13px; }
.compact-heading h2 { font-size: 20px; }
.section-more { color: var(--muted); font-size: 12px; padding-bottom: 4px; transition: color .2s; }
.section-more:hover { color: var(--accent); }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.device-band {
    display: flex; align-items: center; gap: 22px; margin-top: 38px; padding: 22px 25px;
    border: 1px solid rgba(56,189,248,.2); border-radius: 10px;
    background: radial-gradient(ellipse at 10% 50%, rgba(56,189,248,.09), transparent 45%), #151d28;
}
.device-mark { position: relative; width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border: 1px solid rgba(56,189,248,.25); border-radius: 9px; color: var(--accent); font-size: 28px; }
.device-mark i { position: absolute; right: -6px; bottom: -8px; font-style: normal; color: var(--primary); font-size: 20px; }
.device-copy { flex: 1; }
.device-copy h2 { margin: 2px 0 3px; font-size: 18px; }
.device-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.device-link { flex: 0 0 auto; color: var(--accent); font-size: 13px; font-weight: 700; }
.device-link span { margin-left: 7px; }
.home-about { display: grid; grid-template-columns: 245px 1fr; gap: 10px 30px; padding-top: 35px; padding-bottom: 42px; }
.home-about p { margin: 0; color: var(--muted); font-size: 13px; }
.about-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 7px; }
.about-tags span { padding: 3px 9px; color: #b8c5d5; background: #1c2431; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; }
.result-section { min-height: 400px; }
.empty-state { padding: 65px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 9px; background: rgba(22,27,36,.55); }
.empty-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; color: var(--accent); background: rgba(56,189,248,.1); border-radius: 50%; font-size: 27px; }
.empty-state h3 { margin: 12px 0 4px; font-size: 17px; }
.empty-state p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.text-link { color: var(--accent); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); background: var(--deep); }
.footer-inner { width: min(var(--content), calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 50px; padding: 30px 0 25px; }
.footer-brand p, .footer-note p { max-width: 360px; margin: 12px 0 0; color: #8491a4; font-size: 11px; line-height: 1.8; }
.footer-links, .footer-note { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links strong, .footer-note strong { margin-bottom: 3px; font-size: 12px; }
.footer-links a { color: #9aa7b9; font-size: 11px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { width: min(var(--content), calc(100% - 48px)); margin: auto; display: flex; justify-content: space-between; padding: 12px 0 16px; border-top: 1px solid rgba(148,163,184,.1); color: #657185; font-size: 10px; }
.breadcrumb { padding-top: 25px; }
.breadcrumb ol { display: flex; align-items: center; gap: 9px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 12px; }
.breadcrumb li + li::before { content: "/"; margin-right: 9px; color: #536074; }
.breadcrumb a:hover { color: var(--accent); }
.download-hero { padding-bottom: 26px; }
.download-hero-grid { display: flex; align-items: center; justify-content: space-between; min-height: 230px; padding: 25px 35px; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: radial-gradient(ellipse at 80% 50%, rgba(242,92,54,.13), transparent 33%), linear-gradient(115deg, #171e29, #111720); }
.download-hero-grid > div:first-child { max-width: 690px; }
.download-hero h1 { margin: 7px 0 9px; font-size: clamp(27px, 4vw, 38px); line-height: 1.25; letter-spacing: -.04em; }
.download-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; }
.platform-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.platform-pills span { padding: 4px 10px; border: 1px solid rgba(56,189,248,.23); border-radius: 4px; color: var(--accent); background: rgba(56,189,248,.06); font-size: 11px; }
.download-symbol { position: relative; width: 185px; height: 155px; flex: 0 0 185px; display: grid; place-items: center; color: var(--accent); }
.symbol-screen { display: grid; place-items: center; width: 112px; height: 88px; border: 2px solid rgba(56,189,248,.6); border-radius: 12px; background: rgba(56,189,248,.08); font-size: 42px; font-weight: 800; box-shadow: 0 0 50px rgba(56,189,248,.1); }
.symbol-screen::after { content: ""; position: absolute; width: 48px; height: 5px; bottom: 23px; border-radius: 5px; background: rgba(56,189,248,.5); }
.symbol-phone { position: absolute; right: 8px; bottom: 13px; display: grid; place-items: center; width: 37px; height: 62px; border: 2px solid var(--primary); border-radius: 7px; background: #161b24; color: var(--primary); font-size: 28px; }
.symbol-signal { position: absolute; top: 1px; right: 19px; color: var(--primary); font-size: 37px; transform: rotate(-30deg); }
.platform-section { padding-top: 9px; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.platform-card-top { display: flex; align-items: center; justify-content: space-between; }
.platform-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--accent); background: rgba(56,189,248,.1); font-size: 26px; }
.platform-tag { color: var(--accent); background: rgba(56,189,248,.08); padding: 3px 8px; border-radius: 4px; font-size: 10px; }
.platform-card h3 { margin: 14px 0 6px; font-size: 19px; }
.platform-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 12px; }
.platform-card ul { display: grid; gap: 6px; padding: 14px 0 14px 17px; margin: 0; color: #c0cad8; font-size: 12px; }
.platform-card li::marker { color: var(--accent); }
.download-unavailable { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding-top: 13px; border-top: 1px solid var(--line); color: #c2a58c; font-size: 12px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.install-guide { display: grid; grid-template-columns: 245px 1fr; gap: 35px; padding-top: 42px; padding-bottom: 42px; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 22px; }
.guide-list article { display: flex; gap: 13px; }
.guide-list article > b { color: var(--primary); font-size: 14px; font-variant-numeric: tabular-nums; }
.guide-list h3 { margin: 0 0 4px; font-size: 14px; }
.guide-list p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.download-return { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 40px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.download-return h2 { margin: 3px 0; font-size: 19px; }
.download-return p { margin: 0; color: var(--muted); font-size: 12px; }
.primary-button { display: inline-flex; align-items: center; gap: 15px; padding: 10px 16px; border-radius: 6px; background: var(--primary); color: white; font-size: 12px; font-weight: 700; white-space: nowrap; transition: .2s; }
.primary-button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.not-found { min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found-code { color: var(--primary); font-size: 76px; line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.not-found h1 { margin: 17px 0 5px; font-size: 25px; }
.not-found p { max-width: 500px; margin: 0 0 20px; color: var(--muted); font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 1000px) {
    .featured-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 15px; }
    .featured-grid .media-info h3 { font-size: 12px; }
    .featured-grid .media-summary { font-size: 10px; }
    .featured-grid .media-meta { gap: 5px; font-size: 9px; }
    .featured-grid .media-meta span + span::before { margin-right: 5px; }
}
@media (max-width: 900px) {
    .media-grid, .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-about, .install-guide { grid-template-columns: 1fr; gap: 12px; }
    .about-tags { grid-column: 1; }
    .footer-inner { gap: 25px; }
}
@media (max-width: 640px) {
    .container, .header-inner, .footer-inner, .footer-bottom { width: min(100% - 30px, var(--content)); }
    .header-inner { min-height: 64px; gap: 15px; }
    .brand img { width: 36px; height: 36px; }
    .brand-copy strong { font-size: 17px; }
    .brand-copy small { font-size: 9px; }
    .main-nav { height: 64px; gap: 13px; margin-left: auto; }
    .main-nav a { font-size: 12px; }
    .header-download { display: none; }
    .home-intro { padding-top: 24px; display: block; }
    .intro-copy h1 { font-size: 25px; }
    .intro-copy p { font-size: 12px; }
    .intro-action { min-width: 0; margin-top: 15px; padding: 9px 11px; width: 100%; }
    .search-panel { padding: 13px; }
    .search-control { gap: 8px; padding-left: 9px; }
    .search-control button { padding: 0 12px; font-size: 12px; }
    .category-row { gap: 6px; }
    .category-label { width: 100%; }
    .category-chip { padding: 4px 10px; }
    .catalog-section { margin-top: 27px; }
    .section-heading h2 { font-size: 19px; }
    .media-grid, .category-grid, .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 10px; }
    .media-info h3 { font-size: 12px; }
    .media-meta { gap: 5px; font-size: 9px; }
    .media-meta span + span::before { margin-right: 5px; }
    .media-summary { font-size: 10px; min-height: 34px; }
    .device-band { align-items: flex-start; flex-wrap: wrap; gap: 13px; padding: 16px; }
    .device-mark { width: 43px; height: 43px; flex-basis: 43px; font-size: 22px; }
    .device-copy { flex-basis: calc(100% - 58px); }
    .device-copy h2 { font-size: 15px; }
    .device-copy p { font-size: 11px; }
    .device-link { margin-left: 56px; }
    .home-about { padding-top: 28px; padding-bottom: 30px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-top: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-note { grid-column: 1 / -1; }
    .footer-bottom { font-size: 9px; }
    .download-hero-grid { min-height: 0; padding: 22px 18px; }
    .download-hero h1 { font-size: 27px; }
    .download-hero p { font-size: 12px; }
    .download-symbol { width: 85px; height: 95px; flex-basis: 85px; transform: scale(.72); transform-origin: right center; margin-left: -20px; }
    .symbol-screen { width: 100px; height: 76px; }
    .platform-grid { grid-template-columns: 1fr; }
    .platform-card { padding: 18px; }
    .platform-card > p { min-height: 0; }
    .guide-list { grid-template-columns: 1fr; }
    .install-guide { padding-top: 30px; padding-bottom: 30px; }
    .download-return { align-items: flex-start; flex-direction: column; padding: 18px; }
}
@media (max-width: 380px) {
    .main-nav { gap: 9px; }
    .main-nav a { font-size: 11px; }
    .media-grid, .category-grid, .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-side-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
