/* 网飞猫：暗夜放映室与轻量索引界面 */
:root {
  color-scheme: dark;
  --accent: #F25C36;
  --steel: #232B3A;
  --deep: #080A0E;
  --bg: #0E1117;
  --panel: #161B24;
  --panel-soft: #1B2230;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --cyan: #38BDF8;
  --line: rgba(148, 163, 184, .16);
  --line-strong: rgba(148, 163, 184, .25);
  --radius-sm: 7px;
  --radius: 10px;
  --content: 1240px;
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(35, 43, 58, .28), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "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; }
a:hover { color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: rgba(242, 92, 54, .7); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip-link {
  position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 8px 12px;
  color: #081018; background: var(--cyan); border-radius: 6px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  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), calc(100% - 48px)); height: 72px; margin: auto;
  display: flex; align-items: center; gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: #202633; }
.brand-copy { display: grid; line-height: 1.3; }
.brand-copy strong { font-size: 19px; letter-spacing: .02em; font-weight: 800; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 27px; height: 100%; }
.main-nav a { position: relative; display: inline-flex; align-items: center; height: 100%; color: #AAB4C3; font-size: 13px; transition: color .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after {
  position: absolute; right: 0; bottom: 0; left: 0; height: 2px; content: ""; background: var(--accent);
}
.header-download {
  margin-left: auto; padding: 9px 15px; border: 1px solid rgba(56, 189, 248, .35);
  border-radius: 7px; color: var(--cyan); font-size: 12px; font-weight: 700;
  transition: background .2s ease, border-color .2s ease;
}
.header-download:hover { background: rgba(56, 189, 248, .1); border-color: var(--cyan); }
.header-download span { margin-left: 8px; }
.nav-toggle, .mobile-nav { display: none; }
.page-shell { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; }
.intro-panel {
  position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center;
  min-height: 285px; margin-top: 27px; padding: 36px 44px; overflow: hidden;
  background: linear-gradient(115deg, #171D28 0%, #141A24 54%, #1C2431 100%);
  border: 1px solid var(--line); border-radius: 12px;
}
.intro-panel::before {
  position: absolute; top: -170px; right: 18%; width: 430px; height: 430px;
  border: 1px solid rgba(242, 92, 54, .12); border-radius: 50%; content: "";
}
.intro-panel::after {
  position: absolute; top: -115px; right: 22%; width: 320px; height: 320px;
  border: 1px solid rgba(56, 189, 248, .1); border-radius: 50%; content: "";
}
.intro-copy { position: relative; z-index: 2; max-width: 670px; }
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--cyan);
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(242, 92, 54, .8); }
.intro-copy h1 { margin: 12px 0 11px; font-size: clamp(27px, 3.3vw, 39px); line-height: 1.28; letter-spacing: -.045em; font-weight: 850; }
.intro-copy p { max-width: 650px; margin: 0; color: #AAB4C3; font-size: 14px; line-height: 1.9; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 23px; }
.button {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 17px; border: 1px solid transparent; border-radius: 7px;
  font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: #ff704b; }
.button-outline { color: #D5DCE7; border-color: var(--line-strong); background: rgba(255,255,255,.02); }
.button-outline:hover { border-color: rgba(56,189,248,.6); background: rgba(56,189,248,.07); }
.intro-side { position: relative; z-index: 1; min-height: 210px; display: grid; place-items: center; }
.side-orbit { position: absolute; border: 1px solid rgba(56,189,248,.16); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 250px; height: 160px; }
.orbit-two { width: 190px; height: 235px; border-color: rgba(242,92,54,.2); transform: rotate(38deg); }
.screen-mark {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 23px 30px;
  border: 1px solid rgba(148,163,184,.2); border-radius: 12px;
  background: linear-gradient(145deg, rgba(8,10,14,.85), rgba(22,27,36,.92)); box-shadow: var(--shadow-soft);
}
.screen-mark-icon { display: grid; width: 48px; height: 48px; place-items: center; padding-left: 3px; color: #fff; background: var(--accent); border-radius: 50%; font-size: 17px; }
.screen-mark strong { font-size: 14px; }
.screen-mark small { color: var(--muted); font-size: 10px; }
.side-note { position: absolute; right: 0; bottom: 3px; color: #AAB4C3; font-size: 10px; }
.note-spark { margin-right: 5px; color: var(--accent); }
.search-section { margin: 20px 0 31px; }
.search-form {
  display: flex; align-items: center; max-width: 760px; min-height: 56px; margin: auto;
  padding: 6px 7px 6px 17px; background: #161B24; border: 1px solid rgba(148,163,184,.2);
  border-radius: 9px; transition: border-color .2s ease, box-shadow .2s ease;
}
.search-form:focus-within { border-color: rgba(56,189,248,.75); box-shadow: 0 0 0 3px rgba(56,189,248,.08); }
.search-icon { margin-right: 11px; color: var(--cyan); font-size: 26px; line-height: 1; }
.search-form input { flex: 1; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 13px; }
.search-form input::placeholder { color: #6F7C8E; }
.search-form button { align-self: stretch; padding: 0 22px; color: #fff; background: var(--accent); border: 0; border-radius: 6px; font-size: 12px; font-weight: 800; cursor: pointer; }
.search-form button:hover { background: #ff704b; }
.search-hint { max-width: 760px; margin: 6px auto 0; color: #697587; font-size: 10px; }
.catalog-section { padding-top: 3px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 5px 0 3px; font-size: 23px; line-height: 1.35; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.result-count { margin-bottom: 5px; color: #7D899A; font-size: 11px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.category-tab { padding: 6px 14px; color: #9BA7B8; background: var(--steel); border: 1px solid transparent; border-radius: 5px; font-size: 11px; transition: .2s ease; }
.category-tab:hover { color: #fff; border-color: rgba(56,189,248,.4); }
.category-tab.is-active { color: #fff; background: rgba(242,92,54,.17); border-color: rgba(242,92,54,.5); }
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 19px 14px; }
.poster-card { min-width: 0; overflow: hidden; background: transparent; }
.poster-frame { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #202633; border: 1px solid rgba(148,163,184,.14); border-radius: 7px; }
.poster-frame::after { position: absolute; inset: 42% 0 0; content: ""; background: linear-gradient(transparent, rgba(5,7,10,.72)); pointer-events: none; }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.poster-card:hover .poster-frame img { transform: scale(1.045); }
.poster-type, .poster-status { position: absolute; z-index: 1; top: 9px; padding: 3px 7px; border-radius: 4px; font-size: 9px; font-weight: 700; }
.poster-type { left: 8px; color: #fff; background: rgba(8,10,14,.78); backdrop-filter: blur(8px); }
.poster-status { right: 8px; color: #fff; background: rgba(242,92,54,.9); }
.poster-info { padding: 9px 1px 0; }
.poster-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.poster-title-row h3 { overflow: hidden; margin: 0; color: #E9EDF4; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.poster-title-row > span { flex: 0 0 auto; color: #778396; font-size: 10px; font-variant-numeric: tabular-nums; }
.poster-info p { display: -webkit-box; overflow: hidden; min-height: 38px; margin: 5px 0 7px; color: #8793A4; font-size: 10px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.poster-meta { display: flex; justify-content: space-between; gap: 6px; color: #69778A; font-size: 9px; }
.poster-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pagination { display: flex; justify-content: center; gap: 7px; margin: 28px 0 5px; }
.pagination a { min-width: 34px; height: 34px; display: grid; place-items: center; color: #AAB4C3; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.pagination a:hover, .pagination a.is-current { color: #fff; background: rgba(242,92,54,.2); border-color: var(--accent); }
.empty-state { display: grid; justify-items: center; padding: 55px 20px; border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; }
.empty-icon { color: var(--cyan); font-size: 34px; }
.empty-state h3 { margin: 8px 0 3px; font-size: 18px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.category-rail { margin-top: 43px; }
.compact-heading { margin-bottom: 13px; }
.compact-heading h2 { font-size: 20px; }
.rail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rail-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; transition: border-color .2s ease, transform .2s ease; }
.rail-card:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.42); }
.rail-symbol { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; color: #fff; background: var(--steel); border-radius: 7px; font-size: 15px; font-weight: 800; }
.rail-card > span:nth-child(2) { display: grid; min-width: 0; }
.rail-card strong { font-size: 12px; }
.rail-card small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.rail-card b { margin-left: auto; color: var(--cyan); font-size: 15px; }
.rail-movie .rail-symbol { color: #FFB19C; background: rgba(242,92,54,.13); }
.rail-tv .rail-symbol { color: #8BD8FB; background: rgba(56,189,248,.12); }
.rail-anime .rail-symbol { color: #B6A7FF; background: rgba(139,117,255,.13); }
.rail-variety .rail-symbol { color: #EBCB82; background: rgba(235,203,130,.12); }
.device-strip { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 35px 0 48px; padding: 23px 26px; background: linear-gradient(105deg, #171E29, #141B25); border: 1px solid rgba(56,189,248,.2); border-radius: 10px; }
.device-copy { max-width: 570px; }
.device-copy h2 { margin: 5px 0 4px; font-size: 20px; }
.device-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.device-badges { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 9px; }
.device-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #B8C5D5; background: rgba(8,10,14,.45); border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.device-badge i { color: var(--cyan); font-style: normal; font-size: 14px; }
.device-link { padding: 9px 12px; color: var(--cyan); border: 1px solid rgba(56,189,248,.4); border-radius: 6px; font-size: 10px; font-weight: 800; }
.device-link b { margin-left: 8px; }
.site-footer { background: var(--deep); border-top: 1px solid rgba(148,163,184,.13); }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 50px; width: min(var(--content), calc(100% - 48px)); margin: auto; padding: 34px 0 27px; }
.brand-footer img { width: 36px; height: 36px; }
.brand-footer .brand-copy strong { font-size: 16px; }
.footer-brand p { max-width: 360px; margin: 12px 0 0; color: #788597; font-size: 11px; }
.footer-links { display: grid; align-content: start; justify-items: start; gap: 7px; }
.footer-links strong { margin-bottom: 4px; color: #DCE3ED; font-size: 11px; }
.footer-links a { color: #7F8B9D; font-size: 10px; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; width: min(var(--content), calc(100% - 48px)); margin: auto; padding: 13px 0 17px; color: #5F6B7C; border-top: 1px solid rgba(148,163,184,.1); font-size: 9px; }
.breadcrumb { display: flex; gap: 9px; margin: 24px 0 13px; color: #718094; font-size: 11px; }
.breadcrumb a:hover { color: var(--cyan); }
.download-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 280px; overflow: hidden; padding: 36px 48px; background: linear-gradient(115deg, #171D28, #131A24 65%, #1C2834); border: 1px solid var(--line); border-radius: 12px; }
.download-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.download-hero h1 { margin: 10px 0; font-size: clamp(27px, 3.3vw, 38px); line-height: 1.3; letter-spacing: -.04em; }
.download-hero p { max-width: 600px; margin: 0 0 20px; color: #AAB4C3; font-size: 13px; }
.device-illustration { position: relative; width: 330px; height: 205px; flex: 0 0 330px; }
.phone-shape { position: absolute; z-index: 2; top: 14px; left: 38px; width: 93px; height: 174px; display: grid; place-items: center; background: linear-gradient(145deg, #303B4D, #10151D); border: 4px solid #667386; border-radius: 17px; box-shadow: 0 18px 36px rgba(0,0,0,.35); transform: rotate(-8deg); }
.phone-shape::before { position: absolute; top: 6px; width: 26px; height: 4px; border-radius: 5px; background: #667386; content: ""; }
.phone-shape span { position: absolute; inset: 17px 7px; border-radius: 8px; background: radial-gradient(circle at 50% 40%, rgba(242,92,54,.5), transparent 45%), #171E29; }
.phone-shape i, .tv-shape i { position: relative; z-index: 1; color: var(--accent); font-style: normal; font-size: 25px; }
.tv-shape { position: absolute; top: 44px; right: 12px; width: 205px; height: 128px; display: grid; place-items: center; background: linear-gradient(145deg, #283343, #0C1118); border: 4px solid #566477; border-radius: 10px; box-shadow: 0 18px 36px rgba(0,0,0,.35); }
.tv-shape::after { position: absolute; bottom: -13px; left: 50%; width: 56px; height: 8px; background: #566477; clip-path: polygon(20% 0,80% 0,100% 100%,0 100%); content: ""; }
.tv-shape span { position: absolute; bottom: -19px; left: 38%; width: 24%; height: 3px; border-radius: 4px; background: #566477; }
.client-section { margin-top: 38px; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.client-card { position: relative; min-height: 230px; padding: 23px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.client-card:hover { border-color: rgba(56,189,248,.35); }
.client-icon { display: grid; width: 48px; height: 48px; place-items: center; color: var(--cyan); background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.18); border-radius: 9px; font-size: 13px; font-weight: 800; }
.client-platform { position: absolute; top: 28px; right: 23px; color: #8390A2; font-size: 10px; }
.client-card h3 { margin: 14px 0 5px; font-size: 18px; }
.client-card p { max-width: 480px; min-height: 44px; margin: 0; color: var(--muted); font-size: 11px; }
.availability { display: flex; align-items: center; gap: 8px; margin-top: 17px; padding-top: 12px; color: #D5B98B; border-top: 1px solid var(--line); font-size: 10px; }
.availability-dot { width: 6px; height: 6px; border-radius: 50%; background: #D5A65E; }
.install-guide { margin-top: 38px; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-list article { display: flex; gap: 13px; padding: 18px; background: rgba(22,27,36,.7); border: 1px solid var(--line); border-radius: 9px; }
.guide-number { color: var(--accent); font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
.guide-list h3 { margin: 0 0 5px; font-size: 12px; }
.guide-list p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.download-note { display: flex; gap: 14px; margin: 27px 0 20px; padding: 18px 20px; background: rgba(56,189,248,.055); border: 1px solid rgba(56,189,248,.2); border-radius: 9px; }
.note-icon { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; color: #081018; background: var(--cyan); border-radius: 50%; font-size: 13px; font-weight: 900; }
.download-note h2 { margin: 0 0 4px; font-size: 13px; }
.download-note p { margin: 0; color: #A1B1C3; font-size: 11px; }
.back-catalog { margin: 22px 0 45px; }
.back-catalog a { color: var(--cyan); font-size: 11px; }
.error-page { min-height: 55vh; display: grid; align-content: center; justify-items: center; text-align: center; }
.error-code { color: var(--accent); font-size: clamp(70px, 14vw, 140px); font-weight: 900; line-height: 1; letter-spacing: -.08em; }
.error-page h1 { margin: 17px 0 4px; font-size: 24px; }
.error-page p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 1080px) {
  .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .header-inner { gap: 25px; }
  .intro-panel { padding-right: 30px; padding-left: 30px; }
  .rail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner, .page-shell, .footer-inner, .footer-bottom { width: min(100% - 30px, var(--content)); }
  .header-inner { height: 64px; gap: 14px; }
  .brand img { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 9px; }
  .main-nav, .header-download { display: none; }
  .nav-toggle { display: inline-grid; width: 38px; height: 38px; place-items: center; margin-left: auto; color: #EAF0F8; background: #171E29; border: 1px solid var(--line); border-radius: 7px; font-size: 17px; cursor: pointer; }
  .mobile-nav { display: grid; gap: 0; padding: 5px 15px 12px; background: #080A0E; border-top: 1px solid var(--line); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 10px 3px; color: #B8C4D4; border-bottom: 1px solid rgba(148,163,184,.09); font-size: 12px; }
  .intro-panel { grid-template-columns: 1fr; min-height: 0; margin-top: 16px; padding: 26px 22px; }
  .intro-copy h1 { max-width: 560px; font-size: clamp(25px, 6vw, 34px); }
  .intro-copy p { font-size: 12px; }
  .intro-side { display: none; }
  .search-section { margin: 15px 0 25px; }
  .search-form { min-height: 51px; padding-left: 12px; }
  .search-form button { padding: 0 13px; }
  .search-form input { font-size: 12px; }
  .section-heading h2 { font-size: 20px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 11px; }
  .poster-title-row h3 { font-size: 12px; }
  .poster-info p { font-size: 9px; }
  .poster-meta { font-size: 8px; }
  .device-strip { align-items: flex-start; flex-direction: column; margin: 28px 0 34px; padding: 19px; }
  .device-badges { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 27px 0 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 3px; }
  .download-hero { min-height: 0; padding: 27px 22px; }
  .download-hero-copy { max-width: 100%; }
  .download-hero h1 { font-size: 27px; }
  .device-illustration { display: none; }
  .client-grid { grid-template-columns: 1fr; }
  .client-card { min-height: 0; padding: 19px; }
  .client-card p { min-height: 0; }
  .guide-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .page-shell, .header-inner, .footer-inner, .footer-bottom { width: calc(100% - 24px); }
  .intro-panel { padding: 23px 17px; }
  .intro-copy h1 { font-size: 25px; }
  .intro-actions { gap: 8px; }
  .button { min-height: 39px; padding: 8px 12px; font-size: 11px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .poster-info p { min-height: 0; }
  .rail-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rail-card { gap: 8px; padding: 10px 8px; }
  .rail-symbol { flex-basis: 31px; width: 31px; height: 31px; }
  .rail-card small { font-size: 8px; }
  .device-badges { gap: 6px; }
  .device-badge, .device-link { font-size: 9px; }
  .section-heading { align-items: flex-start; }
  .result-count { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
