/* 网飞猫：暗夜放映室与轻量影视索引 */
:root {
    color-scheme: dark;
    --bg: #0E1117;
    --deep: #080A0E;
    --panel: #161B24;
    --panel-2: #1B2230;
    --line: #283140;
    --line-soft: #202938;
    --text: #F1F5F9;
    --muted: #94A3B8;
    --muted-2: #718096;
    --primary: #F25C36;
    --cyan: #38BDF8;
    --radius: 10px;
    --content: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 14px; background: var(--primary); color: #fff; border-radius: 6px;
}
.skip-link:focus { top: 12px; }
.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;
}
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(8,10,14,.96); border-bottom: 1px solid #202631;
    backdrop-filter: blur(14px);
}
.header-inner {
    width: min(var(--content), calc(100% - 48px)); height: 68px; margin: 0 auto;
    display: flex; align-items: center; gap: 42px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: #202938; }
.main-nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.main-nav a { height: 100%; display: inline-flex; align-items: center; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); border-color: var(--primary); }
.header-download {
    margin-left: auto; padding: 9px 14px; border: 1px solid rgba(56,189,248,.35);
    border-radius: 7px; color: var(--cyan); background: rgba(56,189,248,.07);
    font-weight: 700; transition: background .2s, border-color .2s;
}
.header-download:hover { background: rgba(56,189,248,.14); border-color: var(--cyan); }
.header-download span { margin-left: 7px; }
.page-shell { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; }
.discovery-bar {
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
    gap: 15px 28px; padding: 28px 0 22px; border-bottom: 1px solid var(--line-soft);
}
.intro-copy { min-width: 0; }
.brand-kicker, .section-mark {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary);
    font-size: 12px; font-weight: 800; letter-spacing: .5px;
}
.live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px rgba(242,92,54,.6); }
.intro-copy h1 { margin: 7px 0 4px; font-size: clamp(23px, 3vw, 30px); line-height: 1.3; letter-spacing: -.8px; }
.intro-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.device-shortcut {
    display: flex; align-items: center; gap: 12px; min-width: 212px; padding: 11px 14px;
    border: 1px solid rgba(56,189,248,.28); border-radius: 9px; background: rgba(56,189,248,.055);
}
.device-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--cyan); background: rgba(56,189,248,.12); font-size: 21px; }
.device-shortcut strong, .device-shortcut small { display: block; }
.device-shortcut strong { font-size: 13px; }
.device-shortcut small { color: var(--muted); font-size: 11px; }
.device-shortcut b { margin-left: auto; color: var(--cyan); font-size: 19px; }
.search-form {
    grid-column: 1 / 2; display: flex; align-items: center; gap: 10px; height: 46px;
    padding: 4px 5px 4px 14px; background: var(--panel); border: 1px solid var(--line);
    border-radius: 8px; transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56,189,248,.08); }
.search-symbol { color: var(--cyan); font-size: 24px; line-height: 1; transform: rotate(-15deg); }
.search-form input { flex: 1; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; }
.search-form input::placeholder { color: #718096; }
.search-form button {
    height: 36px; padding: 0 18px; border: 0; border-radius: 6px;
    color: #fff; background: var(--primary); font-weight: 800; cursor: pointer;
}
.search-form button:hover, .button-primary:hover { background: #ff704b; }
.category-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.category-chip {
    min-width: 62px; padding: 6px 13px; text-align: center; color: var(--muted);
    background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
    font-size: 12px; transition: all .2s;
}
.category-chip:hover { color: var(--text); border-color: #536174; }
.category-chip.selected { color: #fff; background: rgba(242,92,54,.15); border-color: rgba(242,92,54,.6); }
.catalog-section { padding: 28px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 17px; }
.section-heading h2, .guide-heading h2 { margin: 4px 0 2px; font-size: 22px; letter-spacing: -.4px; line-height: 1.35; }
.section-heading p, .guide-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.result-count { color: var(--muted); font-size: 12px; padding-bottom: 5px; }
.movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 22px 15px; }
.movie-card { min-width: 0; overflow: hidden; }
.poster-wrap {
    position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 7px;
    background: linear-gradient(145deg, #252e3d, #141a23); border: 1px solid #283242;
}
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.movie-card:hover .poster { transform: scale(1.045); }
.poster-wrap::after { content: ""; position: absolute; inset: 45% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(5,8,13,.55)); }
.poster-status, .poster-quality {
    position: absolute; z-index: 1; top: 8px; padding: 3px 6px; border-radius: 3px;
    font-size: 10px; line-height: 1.4; backdrop-filter: blur(8px);
}
.poster-status { left: 8px; color: #fff; background: rgba(8,10,14,.75); }
.poster-quality { right: 8px; color: #b9eaff; background: rgba(10,43,60,.82); }
.movie-info { padding: 9px 1px 0; }
.movie-meta { display: flex; gap: 9px; color: var(--muted-2); font-size: 10px; }
.movie-meta span:first-child { color: var(--cyan); }
.movie-info h3 { overflow: hidden; margin: 4px 0 3px; color: #e9eef5; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.movie-info p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.empty-state { padding: 54px 20px; text-align: center; border: 1px dashed #344052; border-radius: 10px; background: rgba(22,27,36,.55); }
.empty-icon { color: var(--cyan); font-size: 36px; }
.empty-state h3 { margin: 7px 0; font-size: 18px; }
.empty-state p { color: var(--muted); }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; color: #fff; background: var(--primary); border-radius: 6px; font-weight: 800; transition: background .2s; }
.watch-note {
    display: flex; align-items: center; gap: 16px; margin-top: 34px; padding: 18px 20px;
    background: linear-gradient(100deg, rgba(242,92,54,.12), rgba(22,27,36,.92) 46%);
    border: 1px solid rgba(242,92,54,.22); border-radius: 10px;
}
.watch-note-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--primary); border-radius: 50%; }
.watch-note h2 { margin: 0 0 2px; font-size: 15px; }
.watch-note p { margin: 0; color: var(--muted); font-size: 12px; }
.watch-note > a { margin-left: auto; color: var(--primary); font-weight: 700; white-space: nowrap; }
.category-summary { padding: 34px 0 42px; }
.compact-heading { margin-bottom: 13px; }
.compact-heading h2 { font-size: 19px; }
.category-summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.category-summary-grid a {
    position: relative; display: flex; flex-direction: column; min-height: 112px; padding: 14px 16px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s, transform .2s;
}
.category-summary-grid a:hover { border-color: #536174; transform: translateY(-2px); }
.summary-number { color: var(--cyan); font: 11px/1.2 ui-monospace, monospace; }
.category-summary-grid strong { margin-top: 5px; font-size: 16px; }
.category-summary-grid small { color: var(--muted); font-size: 11px; }
.category-summary-grid b { position: absolute; right: 15px; bottom: 14px; color: var(--primary); font-size: 18px; }
.site-footer { background: var(--deep); border-top: 1px solid #202631; }
.footer-inner { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 27px 0 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.footer-brand .brand { font-size: 17px; }
.footer-brand .brand img { width: 34px; height: 34px; }
.footer-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--cyan); }
.copyright { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 13px; border-top: 1px solid #1c2430; color: #657286; font-size: 11px; }

/* 客户端下载中心 */
.download-page { padding-bottom: 42px; }
.download-hero {
    position: relative; display: grid; grid-template-columns: 1fr .85fr; align-items: center;
    min-height: 310px; margin: 25px 0 34px; padding: 36px 48px; overflow: hidden;
    border: 1px solid #273242; border-radius: 12px;
    background: radial-gradient(ellipse at 76% 48%, rgba(56,189,248,.12), transparent 34%), linear-gradient(115deg, #171d28, #10151d 70%);
}
.download-hero-copy { position: relative; z-index: 2; max-width: 520px; }
.download-hero h1 { margin: 9px 0 10px; font-size: clamp(27px, 3.6vw, 38px); line-height: 1.25; letter-spacing: -1px; }
.download-hero p { max-width: 460px; margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.device-art { position: relative; height: 230px; display: flex; align-items: center; justify-content: center; gap: 25px; }
.art-glow { position: absolute; width: 260px; height: 190px; border-radius: 50%; background: rgba(56,189,248,.1); filter: blur(38px); }
.phone-frame, .tv-frame { position: relative; z-index: 1; border: 4px solid #536174; background: #080b10; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.phone-frame { width: 82px; height: 160px; padding: 7px; border-radius: 16px; transform: rotate(-8deg) translateY(9px); }
.phone-screen, .tv-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 8px; background: linear-gradient(145deg, #273446, #111923); }
.phone-screen span, .tv-screen span { color: #fff; font-size: 11px; font-weight: 800; }
.phone-screen i, .tv-screen i { display: grid; place-items: center; width: 32px; height: 32px; margin: 10px 0; color: #fff; background: var(--primary); border-radius: 50%; font-style: normal; font-size: 12px; }
.phone-screen small, .tv-screen small { color: #a6b5c7; font-size: 8px; }
.tv-frame { width: 220px; height: 136px; padding: 7px; border-radius: 9px; transform: rotate(4deg) translateY(-3px); }
.tv-screen { border-radius: 3px; }
.tv-screen span { font-size: 15px; }
.tv-screen i { width: 36px; height: 36px; }
.tv-screen small { font-size: 9px; }
.tv-stand { position: absolute; z-index: 0; bottom: -13px; left: 50%; width: 55px; height: 12px; border-bottom: 4px solid #536174; border-left: 4px solid #536174; border-right: 4px solid #536174; transform: translateX(-50%); }
.download-options { padding-bottom: 34px; }
.download-card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.download-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.featured-card { border-color: rgba(56,189,248,.35); background: linear-gradient(145deg, rgba(56,189,248,.07), var(--panel) 45%); }
.download-card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 13px; border-radius: 9px; font-size: 27px; }
.phone-icon { color: var(--primary); background: rgba(242,92,54,.12); }
.tv-icon { color: var(--cyan); background: rgba(56,189,248,.12); }
.device-label { color: var(--muted); font-size: 11px; }
.download-card h3 { margin: 3px 0 8px; font-size: 20px; }
.download-card p { min-height: 48px; margin: 0; color: var(--muted); font-size: 12px; }
.download-card ul { margin: 15px 0 18px; padding: 0; list-style: none; }
.download-card li { position: relative; margin: 8px 0; padding-left: 17px; color: #c3ccd8; font-size: 12px; }
.download-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }
.download-unavailable { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #e7b8a9; background: rgba(242,92,54,.08); border: 1px solid rgba(242,92,54,.2); border-radius: 6px; font-size: 12px; }
.download-unavailable span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.download-disclaimer { margin: 13px 0 0; color: var(--muted-2); font-size: 11px; }
.install-guide { padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: #121822; }
.guide-heading { margin-bottom: 20px; }
.guide-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.guide-steps > div { display: flex; gap: 12px; padding-top: 16px; border-top: 1px solid #2b3544; }
.guide-steps > div > span { color: var(--cyan); font: 700 13px/1.5 ui-monospace, monospace; }
.guide-steps h3 { margin: 0 0 5px; font-size: 14px; }
.guide-steps p { margin: 0; color: var(--muted); font-size: 11px; }
.download-back { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.download-back h2 { margin: 0 0 3px; font-size: 16px; }
.download-back p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1050px) {
    .movie-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .header-inner { gap: 28px; }
}
@media (max-width: 760px) {
    .header-inner, .page-shell, .footer-inner { width: min(100% - 32px, var(--content)); }
    .header-inner { height: 60px; gap: 18px; }
    .brand { font-size: 18px; gap: 7px; }
    .brand img { width: 33px; height: 33px; }
    .main-nav { gap: 14px; font-size: 12px; }
    .header-download { padding: 7px 9px; font-size: 11px; }
    .discovery-bar { grid-template-columns: 1fr auto; gap: 14px; padding-top: 22px; }
    .intro-copy { grid-column: 1 / -1; }
    .intro-copy h1 { font-size: 24px; }
    .device-shortcut { grid-column: 1 / -1; grid-row: 2; justify-self: start; min-width: 0; padding: 8px 11px; }
    .search-form { grid-column: 1 / -1; grid-row: 3; }
    .category-row { grid-row: 4; }
    .movie-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px 11px; }
    .movie-info h3 { font-size: 12px; }
    .movie-info p { font-size: 10px; }
    .watch-note { align-items: flex-start; flex-wrap: wrap; }
    .watch-note > a { margin-left: 58px; }
    .category-summary-grid { grid-template-columns: repeat(2,1fr); }
    .download-hero { grid-template-columns: 1fr .75fr; min-height: 265px; padding: 26px; }
    .device-art { transform: scale(.78); transform-origin: center right; margin-right: -25px; }
    .download-hero h1 { font-size: 27px; }
    .guide-steps { grid-template-columns: 1fr; gap: 12px; }
    .guide-steps > div { padding-top: 12px; }
}
@media (max-width: 520px) {
    .header-inner { gap: 12px; }
    .main-nav { gap: 10px; }
    .main-nav a { font-size: 11px; }
    .header-download { margin-left: auto; font-size: 0; padding: 8px 10px; }
    .header-download span { margin: 0; font-size: 16px; }
    .movie-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px 10px; }
    .poster-status, .poster-quality { top: 5px; padding: 2px 4px; font-size: 8px; }
    .poster-status { left: 5px; }
    .poster-quality { right: 5px; }
    .section-heading h2 { font-size: 19px; }
    .watch-note { padding: 14px; gap: 11px; }
    .watch-note-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .watch-note > div:nth-child(2) { flex: 1; min-width: 180px; }
    .watch-note > a { margin-left: 47px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; gap: 14px; }
    .copyright { grid-column: auto; }
    .download-hero { display: block; min-height: 0; padding: 24px 20px 12px; }
    .download-hero-copy { max-width: none; }
    .download-hero h1 { font-size: 26px; }
    .device-art { height: 175px; margin: 0 -8px; transform: scale(.82); transform-origin: center; }
    .download-card-grid { grid-template-columns: 1fr; }
    .download-card p { min-height: 0; }
    .install-guide { padding: 19px; }
    .download-back { 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; animation-iteration-count: 1 !important; }
}
