@charset "UTF-8";

:root {
    color-scheme: dark;
    --bg: #0E1117;
    --deep: #080A0E;
    --panel: #161B24;
    --panel-soft: #1B2230;
    --line: #283140;
    --muted-line: #202936;
    --text: #F1F5F9;
    --muted: #94A3B8;
    --accent: #F25C36;
    --cyan: #38BDF8;
    --radius: 10px;
    --content: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    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 { max-width: 100%; display: block; }
::selection { color: #fff; background: #A83C28; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr-only {
    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 {
    height: 70px; background: rgba(8,10,14,.96); border-bottom: 1px solid #202630;
    position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
}
.header-inner {
    max-width: var(--content); height: 100%; padding: 0 24px; margin: auto;
    display: flex; align-items: center; gap: 42px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.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); position: relative; transition: color .2s; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 0; background: var(--accent); }
.header-download {
    margin-left: auto; padding: 9px 14px; border: 1px solid #24516A; border-radius: 7px;
    color: var(--cyan); background: rgba(56,189,248,.06); font-size: 13px; font-weight: 700;
}
.header-download span { padding-left: 8px; }
#main-content { min-height: 65vh; }
.discovery-shell, .download-page { max-width: var(--content); margin: 0 auto; padding: 30px 24px 64px; }
.intro-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.intro-copy { max-width: 790px; }
.brand-kicker, .section-mark { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.brand-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(242,92,54,.7); }
.intro-copy h1, .download-hero h1 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 34px); line-height: 1.3; letter-spacing: -.035em; }
.intro-copy p, .download-hero p { color: var(--muted); margin: 0; max-width: 760px; font-size: 14px; }
.device-shortcut {
    display: flex; align-items: center; gap: 12px; min-width: 248px; padding: 13px 15px;
    background: var(--panel); border: 1px solid #25475A; border-radius: 9px; transition: border-color .2s, transform .2s;
}
.device-shortcut:hover { border-color: var(--cyan); transform: translateY(-2px); }
.device-icon { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--cyan); background: rgba(56,189,248,.12); font-size: 22px; }
.device-shortcut strong, .device-shortcut small { display: block; }
.device-shortcut strong { font-size: 13px; }
.device-shortcut small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.device-shortcut b { margin-left: auto; color: var(--cyan); font-size: 18px; }
.search-form {
    display: flex; align-items: center; gap: 12px; height: 54px; padding: 6px 7px 6px 16px;
    background: var(--panel); border: 1px solid #2B3544; border-radius: 8px; transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56,189,248,.08); }
.search-symbol { color: var(--muted); font-size: 25px; line-height: 1; transform: rotate(-20deg); }
.search-form input { flex: 1; min-width: 0; height: 100%; color: var(--text); background: transparent; border: 0; outline: 0; }
.search-form input::placeholder { color: #718096; }
.search-form button, .primary-button {
    display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
    color: #fff; background: var(--accent); border-radius: 6px; font-weight: 800; transition: background .2s, transform .2s;
}
.search-form button { padding: 0 22px; height: 40px; }
.search-form button:hover, .primary-button:hover { background: #D94D2D; transform: translateY(-1px); }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 17px 0 25px; }
.category-pill { padding: 6px 16px; color: #AAB6C7; background: var(--panel); border: 1px solid #293342; border-radius: 5px; font-size: 13px; transition: .2s; }
.category-pill:hover { color: #fff; border-color: #66758A; }
.category-pill.selected { color: #fff; background: var(--accent); border-color: var(--accent); }
.catalog-section { margin-top: 3px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.section-heading h2, .rail-heading h2, .watch-note h2, .device-banner h2 { margin: 3px 0 3px; font-size: 21px; letter-spacing: -.02em; line-height: 1.4; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.section-mark { font-size: 11px; }
.section-mark.cyan { color: var(--cyan); }
.result-count { color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.movie-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 14px; }
.movie-card { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid #252E3B; border-radius: 9px; transition: transform .2s, border-color .2s; }
.movie-card:hover { transform: translateY(-3px); border-color: #46556A; }
.poster-wrap { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: #202735; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.movie-card:hover .poster { transform: scale(1.035); }
.poster-wrap::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8,10,14,.72)); pointer-events: none; }
.poster-tag, .poster-quality { position: absolute; z-index: 1; top: 9px; padding: 3px 6px; font-size: 10px; border-radius: 3px; }
.poster-tag { left: 9px; color: #fff; background: rgba(8,10,14,.72); }
.poster-quality { right: 9px; color: #BDEBFF; background: rgba(13,57,78,.86); }
.movie-info { padding: 10px 10px 12px; }
.movie-info h3 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0 0 3px; font-size: 14px; font-weight: 750; }
.movie-meta { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.movie-meta span { padding: 0 3px; color: #596579; }
.movie-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; margin: 0; color: #A8B3C2; font-size: 11px; line-height: 1.75; }
.source-note { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px solid #27313F; color: #718096; font-size: 10px; }
.empty-state { padding: 56px 20px; text-align: center; border: 1px dashed #344052; border-radius: 10px; background: rgba(22,27,36,.55); }
.empty-state > span { color: var(--muted); font-size: 32px; }
.empty-state h3 { margin: 7px 0 2px; font-size: 18px; }
.empty-state p { margin: 0 0 14px; color: var(--muted); }
.text-link { color: var(--cyan); }
.watch-note { display: flex; align-items: flex-start; gap: 16px; margin-top: 32px; padding: 19px 21px; border: 1px solid #3A2C2A; border-radius: 9px; background: linear-gradient(110deg, rgba(242,92,54,.09), rgba(22,27,36,.85) 46%); }
.watch-note-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #FF9A7E; background: rgba(242,92,54,.15); }
.watch-note h2 { margin: 0 0 4px; font-size: 16px; }
.watch-note p { margin: 0; color: var(--muted); font-size: 12px; }
.category-rail { margin-top: 34px; }
.rail-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 13px; }
.rail-heading h2 { font-size: 19px; }
.rail-heading span { color: var(--muted); font-size: 11px; }
.rail-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rail-items a { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; padding: 13px; background: var(--panel); border: 1px solid #293342; border-radius: 8px; transition: border-color .2s; }
.rail-items a:hover { border-color: var(--accent); }
.rail-items a > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; color: #FFAA92; background: rgba(242,92,54,.12); border-radius: 7px; font-size: 18px; font-weight: 800; }
.rail-items strong { font-size: 13px; }
.rail-items small { color: var(--muted); font-size: 10px; }
.device-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding: 23px 25px; border: 1px solid #25465A; border-radius: 10px; background: linear-gradient(110deg, rgba(56,189,248,.09), rgba(22,27,36,.95) 65%); }
.device-banner h2 { font-size: 19px; margin-top: 5px; }
.device-banner p { color: var(--muted); margin: 4px 0 0; font-size: 12px; }
.outline-button { flex: 0 0 auto; padding: 10px 15px; border: 1px solid #2C789A; border-radius: 6px; color: var(--cyan); font-weight: 700; }
.outline-button:hover { background: rgba(56,189,248,.1); }
.download-hero { padding: 34px 36px; border: 1px solid #2A4557; border-radius: 11px; background: radial-gradient(ellipse at 85% 15%, rgba(56,189,248,.13), transparent 38%), linear-gradient(120deg, #171E29, #111720); }
.cyan-dot { background: var(--cyan); box-shadow: 0 0 12px rgba(56,189,248,.65); }
.download-hero h1 { max-width: 850px; }
.download-hero p { max-width: 700px; }
.download-hero-links { display: flex; align-items: center; gap: 16px; margin-top: 21px; }
.primary-button { min-height: 40px; padding: 0 17px; font-size: 13px; }
.download-hero-links > span { color: var(--muted); font-size: 12px; }
.download-options { margin-top: 35px; }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.download-card { padding: 20px; background: var(--panel); border: 1px solid #293442; border-radius: 10px; }
.download-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: var(--cyan); background: rgba(56,189,248,.12); font-size: 23px; }
.availability { color: #F4B49F; background: rgba(242,92,54,.1); border-radius: 4px; padding: 3px 7px; font-size: 10px; }
.download-card h3 { margin: 17px 0 1px; font-size: 19px; }
.download-subtitle { margin: 0; color: var(--cyan); font-size: 11px; }
.download-description { min-height: 61px; color: var(--muted); font-size: 12px; margin: 13px 0; }
.download-card ul { padding: 12px 0 12px 17px; margin: 0; border-top: 1px solid #2A3442; color: #B7C2D0; font-size: 11px; }
.download-card li { margin: 5px 0; }
.download-card li::marker { color: var(--cyan); }
.download-unavailable { display: block; margin-top: 13px; padding: 9px; text-align: center; border: 1px dashed #465266; border-radius: 6px; color: #A4B0C0; font-size: 11px; }
.install-guide { margin-top: 37px; padding: 24px; background: #121821; border: 1px solid #263140; border-radius: 10px; }
.guide-heading h2 { margin: 5px 0 17px; font-size: 20px; }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-list article { display: flex; gap: 12px; }
.guide-list article > b { color: var(--cyan); font-size: 18px; font-variant-numeric: tabular-nums; }
.guide-list h3 { margin: 0 0 4px; font-size: 13px; }
.guide-list p { margin: 0; color: var(--muted); font-size: 11px; }
.download-return { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 27px; padding: 21px 24px; border-radius: 9px; background: var(--panel); }
.download-return h2 { margin: 0 0 3px; font-size: 18px; }
.download-return p { margin: 0; color: var(--muted); font-size: 12px; }
.not-found { max-width: 700px; margin: 0 auto; padding: 90px 24px 110px; text-align: center; }
.not-found-code { color: var(--accent); font-size: clamp(70px, 14vw, 120px); font-weight: 900; line-height: 1; letter-spacing: -.07em; }
.not-found h1 { margin: 17px 0 5px; font-size: 25px; }
.not-found p { color: var(--muted); margin: 0 0 22px; }
.site-footer { background: var(--deep); border-top: 1px solid #202936; }
.footer-inner { max-width: var(--content); margin: auto; padding: 28px 24px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; }
.footer-brand .brand { font-size: 17px; }
.footer-brand .brand img { width: 34px; height: 34px; }
.footer-brand p { max-width: 500px; margin: 8px 0 0; color: #778497; font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 20px; color: #AAB6C7; font-size: 11px; }
.footer-links a:hover { color: var(--cyan); }
.copyright { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 13px; border-top: 1px solid #202936; color: #657184; font-size: 10px; }
@media (min-width: 1500px) { .movie-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1050px) {
    .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .header-inner { gap: 28px; }
}
@media (max-width: 760px) {
    .site-header { height: 62px; }
    .header-inner { padding: 0 16px; gap: 20px; }
    .brand { font-size: 18px; gap: 7px; }
    .brand img { width: 34px; height: 34px; }
    .main-nav { gap: 15px; font-size: 12px; }
    .header-download { padding: 7px 9px; font-size: 11px; }
    .discovery-shell, .download-page { padding: 22px 16px 45px; }
    .intro-row { align-items: flex-start; flex-direction: column; gap: 15px; }
    .device-shortcut { width: 100%; min-width: 0; }
    .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; }
    .movie-info { padding: 8px; }
    .movie-info h3 { font-size: 12px; }
    .movie-summary { font-size: 10px; }
    .rail-items { grid-template-columns: repeat(2, 1fr); }
    .download-grid { grid-template-columns: 1fr; }
    .download-description { min-height: 0; }
    .guide-list { grid-template-columns: 1fr; gap: 15px; }
    .footer-inner { padding: 24px 16px 17px; }
}
@media (max-width: 480px) {
    .header-inner { gap: 12px; }
    .main-nav { gap: 11px; }
    .main-nav a { font-size: 11px; }
    .header-download { font-size: 0; padding: 8px 10px; }
    .header-download span { font-size: 15px; padding: 0; }
    .intro-copy h1, .download-hero h1 { font-size: 24px; }
    .search-form { gap: 8px; padding-left: 11px; }
    .search-form button { padding: 0 12px; font-size: 12px; }
    .category-nav { gap: 6px; padding-bottom: 20px; }
    .category-pill { padding: 5px 11px; font-size: 11px; }
    .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .section-heading h2 { font-size: 19px; }
    .watch-note { padding: 15px; gap: 11px; }
    .rail-items a { padding: 10px; grid-template-columns: 35px 1fr; gap: 8px; }
    .rail-items a > span { width: 34px; height: 34px; }
    .device-banner, .download-return { align-items: flex-start; flex-direction: column; padding: 18px; }
    .download-hero { padding: 24px 19px; }
    .download-hero-links { align-items: flex-start; flex-direction: column; gap: 9px; }
    .install-guide { padding: 18px; }
    .footer-inner { grid-template-columns: 1fr; gap: 14px; }
    .footer-links { flex-wrap: wrap; gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* 额外的状态、内容细节与窄屏布局优化 */
.movie-card:focus-within { border-color: var(--cyan); }
.movie-card .poster-wrap img { color: transparent; }
.movie-info { display: flex; flex-direction: column; }
.movie-summary { flex: 1; }
.category-pill:focus-visible, .outline-button:focus-visible,
.device-shortcut:focus-visible, .rail-items a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}
.search-form button:focus-visible, .primary-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.download-card { display: flex; flex-direction: column; }
.download-card ul { flex: 1; }
.download-unavailable { margin-top: auto; }
.guide-list article { padding: 13px; border: 1px solid #263140; border-radius: 7px; background: rgba(22,27,36,.55); }
.guide-list article > b { min-width: 27px; }
.footer-links a { padding: 5px 0; }
.not-found .primary-button { display: inline-flex; }
@media (min-width: 761px) {
    .movie-card:nth-child(5n + 2) { transform: translateY(4px); }
    .movie-card:nth-child(5n + 2):hover { transform: translateY(1px); }
}
@media (max-width: 620px) {
    .header-inner { gap: 10px; }
    .main-nav { margin-left: auto; }
    .header-download { margin-left: 0; }
    .rail-heading { align-items: flex-start; flex-direction: column; gap: 0; }
}
@media (max-width: 360px) {
    .brand { font-size: 16px; }
    .main-nav { gap: 8px; }
    .main-nav a { font-size: 10px; }
    .search-form button { padding: 0 9px; }
    .movie-grid { gap: 9px; }
    .movie-info h3 { font-size: 11px; }
    .movie-meta { font-size: 10px; }
}
