/* 网飞猫：暗夜影视索引界面 */
: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: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body { margin: 0; color: var(--text); background: var(--background); font-size: 15px; line-height: 1.65; }
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; }
.skip-link { position: absolute; z-index: 100; top: -60px; left: 16px; padding: 10px 16px; background: var(--accent); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { height: 76px; background: var(--deep); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1240px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 240px; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-size: 19px; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.main-nav a { color: var(--muted); height: 100%; display: flex; align-items: center; position: relative; font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 0; background: var(--accent); }
.header-download { margin-left: auto; color: var(--cyan); border: 1px solid rgba(56,189,248,.3); border-radius: 7px; padding: 8px 14px; font-size: 13px; }
.header-download:hover { background: rgba(56,189,248,.09); }
.page-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.discovery-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 44px 0 34px; border-bottom: 1px solid var(--line); }
.brand-kicker, .section-mark { color: var(--cyan); font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.brand-kicker { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(242,92,54,.5); }
.status-dot.muted { background: #64748b; box-shadow: none; }
.intro-copy h1 { margin: 12px 0 10px; font-size: clamp(27px, 3.2vw, 39px); line-height: 1.25; letter-spacing: -.035em; }
.intro-copy > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 7px; padding: 9px 16px; font-size: 13px; font-weight: 650; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.button-primary:hover { background: #ff704b; }
.button-outline { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.button-outline:hover { border-color: rgba(56,189,248,.55); }
.button-cyan { background: var(--cyan); color: #07131b; border: 1px solid var(--cyan); }
.search-panel { padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search-panel label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 650; }
.search-control { display: flex; gap: 8px; }
.search-control input { min-width: 0; flex: 1; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #0e131b; }
.search-control input:focus { border-color: var(--cyan); outline: 1px solid var(--cyan); }
.search-control button { border: 0; border-radius: 6px; padding: 0 20px; background: var(--accent); color: #fff; font-weight: 650; cursor: pointer; }
.search-panel > p { margin: 9px 0 14px; color: var(--muted); font-size: 12px; }
.download-inline { display: flex; align-items: center; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 13px; }
.download-inline > span:last-child { margin-left: auto; }
.device-icon { font-size: 20px; }
.catalog-section { padding: 31px 0 34px; }
.section-heading, .feature-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2, .feature-heading h2, .device-copy h2 { margin: 4px 0 3px; font-size: 23px; line-height: 1.35; letter-spacing: -.02em; }
.section-heading p, .feature-heading > p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-count { color: var(--cyan); font-size: 18px; font-weight: 700; }
.catalog-count small { color: var(--muted); font-size: 11px; font-weight: 400; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 17px; }
.category-tabs a { min-width: 54px; text-align: center; padding: 6px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--steel); color: #cbd5e1; font-size: 12px; }
.category-tabs a:hover { border-color: rgba(56,189,248,.5); color: var(--cyan); }
.category-tabs a.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.poster-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 25px 15px; }
.poster-card { min-width: 0; }
.poster-frame { position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 7px; background: #202735; border: 1px solid var(--line); }
.poster-frame::after { content: ""; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, rgba(5,8,13,.25)); pointer-events: none; }
.poster-frame img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.poster-card:hover .poster-frame img { transform: scale(1.035); }
.poster-type, .poster-year { position: absolute; z-index: 1; top: 9px; padding: 3px 7px; border-radius: 4px; background: rgba(8,10,14,.78); color: #e2e8f0; font-size: 10px; backdrop-filter: blur(6px); }
.poster-type { left: 8px; }
.poster-year { right: 8px; color: var(--cyan); }
.poster-info h3 { overflow: hidden; margin: 9px 0 3px; font-size: 14px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.poster-meta { display: flex; gap: 9px; color: var(--cyan); font-size: 10px; }
.poster-meta span + span { color: var(--muted); }
.poster-info p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.catalog-note { margin: 18px 0 0; padding: 10px 13px; border-left: 2px solid var(--steel); background: rgba(35,43,58,.34); color: var(--muted); font-size: 11px; }
.empty-state { padding: 54px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-symbol { color: var(--cyan); font-size: 38px; }
.empty-state h3 { margin: 8px 0; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state .button { margin-top: 10px; }
.category-feature { padding: 27px 0 34px; border-top: 1px solid var(--line); }
.category-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 17px; }
.feature-tile { position: relative; min-height: 116px; display: flex; flex-direction: column; justify-content: center; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.feature-tile:hover { border-color: rgba(56,189,248,.45); }
.tile-number { color: var(--cyan); font-size: 10px; letter-spacing: .1em; }
.feature-tile strong { margin-top: 4px; font-size: 18px; }
.feature-tile small { color: var(--muted); font-size: 11px; }
.feature-tile b { position: absolute; top: 16px; right: 16px; color: var(--accent); font-size: 18px; }
.device-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 44px; padding: 23px 26px; border: 1px solid rgba(56,189,248,.22); border-radius: var(--radius); background: linear-gradient(105deg, rgba(35,43,58,.8), rgba(22,27,36,.9)); }
.device-copy h2 { margin-top: 4px; }
.device-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.site-footer { background: var(--deep); border-top: 1px solid var(--line); }
.footer-inner { width: min(1240px, calc(100% - 48px)); margin: auto; padding: 25px 0 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px 30px; }
.footer-logo { color: var(--text); font-size: 18px; font-weight: 750; }
.footer-brand p { max-width: 500px; margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.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: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #64748b; font-size: 11px; }
.breadcrumbs { display: flex; gap: 10px; padding: 20px 0; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--cyan); }
.download-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 260px; padding: 30px 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(circle at 82% 50%, rgba(56,189,248,.12), transparent 28%), linear-gradient(115deg, #171e2a, #111720); }
.download-hero-copy { position: relative; z-index: 1; max-width: 650px; }
.download-hero h1 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; }
.download-hero p { max-width: 600px; margin: 0 0 20px; color: var(--muted); }
.device-orbit { position: relative; width: 250px; height: 190px; margin-right: 5%; color: var(--cyan); }
.device-orbit::before, .device-orbit::after { content: ""; position: absolute; border: 1px solid rgba(56,189,248,.22); border-radius: 50%; inset: 5px 15px; transform: rotate(-22deg); }
.device-orbit::after { inset: 28px -2px; transform: rotate(28deg); border-color: rgba(242,92,54,.25); }
.device-orbit i { position: absolute; width: 10px; height: 10px; right: 26px; top: 24px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px var(--accent); }
.orbit-phone, .orbit-tv { position: absolute; z-index: 1; display: grid; place-items: center; border: 1px solid rgba(56,189,248,.45); background: #101a25; box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.orbit-phone { width: 62px; height: 110px; left: 45px; top: 37px; border-radius: 12px; font-size: 46px; }
.orbit-tv { width: 120px; height: 78px; right: 20px; top: 60px; border-radius: 8px; font-size: 52px; }
.download-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 25px 0; }
.download-card { padding: 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.download-card-top { display: flex; align-items: center; justify-content: space-between; }
.device-badge { padding: 4px 8px; border-radius: 4px; background: rgba(56,189,248,.1); color: var(--cyan); font-size: 11px; }
.device-glyph { color: var(--cyan); font-size: 34px; }
.download-card h2 { margin: 7px 0; font-size: 21px; }
.download-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 13px; }
.download-card ul { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.download-card li { color: #cbd5e1; font-size: 12px; }
.download-card li::before { content: "✓"; margin-right: 9px; color: var(--cyan); }
.package-status { display: flex; align-items: center; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.install-notice { display: flex; gap: 14px; margin: 25px 0 35px; padding: 18px; border: 1px solid rgba(242,92,54,.25); border-radius: 8px; background: rgba(242,92,54,.055); }
.notice-icon { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(242,92,54,.16); color: var(--accent); font-weight: 700; }
.install-notice h2 { margin: 0 0 4px; font-size: 15px; }
.install-notice p { margin: 0; color: var(--muted); font-size: 12px; }
.compatibility { padding: 26px 0 45px; border-top: 1px solid var(--line); }
.compatibility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.compatibility-grid > div { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.compatibility-grid strong { font-size: 14px; }
.compatibility-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.error-page { min-height: 65vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.error-code { color: var(--accent); font-size: clamp(80px, 15vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.07em; }
.error-page h1 { margin: 18px 0 4px; font-size: 27px; }
.error-page p { margin: 0 0 20px; color: var(--muted); }
@media (max-width: 900px) {
  .header-inner, .page-shell, .footer-inner { width: min(100% - 36px, 760px); }
  .header-inner { gap: 24px; }
  .brand { min-width: auto; }
  .brand-copy small { display: none; }
  .discovery-head { grid-template-columns: 1fr; gap: 23px; padding-top: 32px; }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .device-orbit { margin-right: 0; transform: scale(.85); transform-origin: right center; }
}
@media (max-width: 620px) {
  .site-header { height: 66px; }
  .header-inner, .page-shell, .footer-inner { width: calc(100% - 28px); }
  .header-inner { gap: 15px; }
  .brand img { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 17px; }
  .main-nav { gap: 13px; margin-left: auto; }
  .main-nav a { font-size: 12px; }
  .header-download { display: none; }
  .discovery-head { padding: 27px 0 23px; }
  .intro-copy h1 { font-size: 27px; }
  .intro-copy > p { font-size: 13px; }
  .search-panel { padding: 14px; }
  .search-control button { padding: 0 14px; }
  .section-heading h2, .feature-heading h2, .device-copy h2 { font-size: 20px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .poster-info h3 { font-size: 12px; }
  .poster-info p { font-size: 10px; }
  .category-tabs { gap: 6px; }
  .category-tabs a { min-width: 48px; padding: 5px 10px; }
  .category-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-heading { align-items: start; flex-direction: column; gap: 6px; }
  .device-strip { align-items: flex-start; flex-direction: column; padding: 19px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { gap: 18px; }
  .copyright { grid-column: auto; }
  .download-hero { min-height: 0; padding: 25px 20px; }
  .download-hero h1 { font-size: 27px; }
  .device-orbit { display: none; }
  .download-options { grid-template-columns: 1fr; }
  .download-card > p { min-height: 0; }
  .compatibility-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .main-nav { gap: 9px; }
  .main-nav a { font-size: 11px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* 补充细节：增强内容状态、窄屏操作与打印可读性。 */
.poster-card { transition: opacity .2s ease; }
.poster-card:focus-within .poster-frame { border-color: var(--cyan); }
.poster-frame img { color: var(--muted); font-size: 11px; }
.poster-card .poster-info { min-height: 76px; }
.search-control button:active, .button:active { transform: translateY(1px); }
.category-tabs a:focus-visible { outline-offset: 2px; }
.download-card { position: relative; overflow: hidden; }
.download-card::before { content: ""; position: absolute; width: 150px; height: 150px; right: -90px; top: -100px; border: 1px solid rgba(56,189,248,.12); border-radius: 50%; pointer-events: none; }
.download-card li { position: relative; padding-left: 2px; }
.install-notice a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.compatibility-grid > div { transition: border-color .2s ease, background .2s ease; }
.compatibility-grid > div:hover { border-color: rgba(56,189,248,.35); background: #19212d; }
.footer-links a:focus-visible, .breadcrumbs a:focus-visible { border-radius: 3px; }
::selection { color: #fff; background: rgba(242,92,54,.75); }
.search-control input::placeholder { color: #64748b; opacity: 1; }
.search-control input::-webkit-search-cancel-button { cursor: pointer; }
@media (min-width: 1200px) {
  .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .poster-frame { max-height: 360px; }
}
@media (min-width: 1500px) {
  .page-shell, .header-inner, .footer-inner { width: min(1320px, calc(100% - 64px)); }
  .poster-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .intro-actions .button { flex: 1; padding-inline: 10px; }
  .section-heading { align-items: flex-start; }
  .catalog-count { padding-top: 10px; }
  .poster-frame { border-radius: 6px; }
  .poster-type, .poster-year { top: 6px; font-size: 9px; }
  .poster-type { left: 6px; }
  .poster-year { right: 6px; }
  .download-hero .button { width: 100%; }
  .install-notice { padding: 14px; }
}
@media (hover: none) {
  .poster-card:hover .poster-frame img { transform: none; }
  .button:hover { transform: none; }
}
@media print {
  :root { color-scheme: light; --text: #111827; --muted: #475569; --background: #fff; --surface: #fff; }
  body, .site-header, .site-footer { background: #fff !important; color: #111827 !important; }
  .site-header { border-bottom: 1px solid #ddd; }
  .main-nav, .header-download, .search-panel, .intro-actions, .device-strip, .footer-links { display: none !important; }
  .page-shell, .header-inner, .footer-inner { width: 100%; }
  .poster-grid { grid-template-columns: repeat(4, 1fr); }
  .poster-card, .download-card { break-inside: avoid; }
  a { text-decoration: none; }
}
