@charset "UTF-8";

/* 基础色彩与排版 */
:root {
    color-scheme: dark;
    --bg: #0F172A;
    --bg-deep: #020617;
    --surface: #1E293B;
    --surface-soft: #263449;
    --line: rgba(148, 163, 184, .18);
    --text: #F1F5F9;
    --muted: #94A3B8;
    --accent: #22D3EE;
    --accent-dark: #0891B2;
    --success: #34D399;
    --radius: 13px;
    --content: 1220px;
    --shadow: 0 16px 38px rgba(0, 0, 0, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.content-width { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
    position: absolute; z-index: 1000; left: 12px; top: -60px;
    padding: 9px 14px; border-radius: 8px; background: var(--accent); color: var(--bg-deep);
}
.skip-link:focus { top: 12px; }

/* 顶部导航 */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(2, 6, 23, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.header-inner {
    width: min(var(--content), calc(100% - 48px)); min-height: 72px;
    margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a { padding: 9px 16px; color: var(--muted); border-radius: 9px; transition: color .2s, background .2s; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--text); background: rgba(34, 211, 238, .1); }
.menu-toggle {
    display: none; align-items: center; gap: 9px; border: 1px solid var(--line);
    border-radius: 9px; padding: 8px 11px; color: var(--text); background: var(--surface);
}
.menu-lines, .menu-lines::before, .menu-lines::after {
    display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }

/* 首页首屏 */
.home-intro {
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(230px, .8fr);
    gap: 42px; align-items: center; padding-block: 43px 38px;
    border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.home-intro h1 { max-width: 780px; margin: 0; font-size: clamp(28px, 3.5vw, 43px); line-height: 1.28; letter-spacing: -.035em; }
.intro-lead { max-width: 760px; margin: 17px 0 0; color: #CBD5E1; font-size: 16px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 23px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 43px;
    padding: 9px 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 700;
    transition: transform .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #06202A; }
.button-primary:hover { background: #67E8F9; color: #06202A; }
.button-quiet { border-color: var(--line); background: rgba(148, 163, 184, .07); color: var(--text); }
.button-quiet:hover { border-color: rgba(34, 211, 238, .5); color: var(--accent); }
.resource-notice { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.intro-aside {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
    padding: 19px; background: linear-gradient(145deg, var(--surface), rgba(30, 41, 59, .55));
    border: 1px solid var(--line); border-radius: var(--radius);
}
.aside-stat { display: flex; flex-direction: column; gap: 2px; }
.aside-stat strong { color: var(--accent); font-size: 26px; line-height: 1.2; }
.aside-stat span { color: var(--muted); font-size: 12px; }
.intro-aside p { grid-column: 1 / -1; margin: 9px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: #CBD5E1; font-size: 13px; }

/* 区域标题与海报网格 */
.content-section { padding-block: 35px 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.section-heading h2, .panel-heading h2 { margin: 0; font-size: 24px; line-height: 1.35; }
.section-count { color: var(--muted); font-size: 12px; white-space: nowrap; padding-bottom: 4px; }
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 17px 14px; }
.poster-card { min-width: 0; }
.poster-link { display: block; height: 100%; }
.poster-frame { position: relative; overflow: hidden; aspect-ratio: 2 / 2.82; background: var(--surface); border-radius: 10px; border: 1px solid var(--line); }
.poster-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.poster-link:hover .poster-image { transform: scale(1.045); }
.poster-kind, .poster-score {
    position: absolute; bottom: 9px; padding: 3px 7px; border-radius: 5px;
    background: rgba(2, 6, 23, .82); color: #E2E8F0; font-size: 11px; backdrop-filter: blur(5px);
}
.poster-kind { left: 8px; }
.poster-score { right: 8px; color: var(--accent); }
.poster-info { padding: 9px 2px 0; }
.poster-info h3 { overflow: hidden; margin: 0; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.poster-info p { margin: 3px 0 5px; color: var(--muted); font-size: 12px; }
.card-more { color: var(--accent); font-size: 11px; }

/* 榜单与紧凑列表 */
.split-section { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .85fr); gap: 28px; align-items: start; }
.section-main { min-width: 0; }
.compact-list { border-top: 1px solid var(--line); }
.compact-item {
    display: grid; grid-template-columns: 27px 58px minmax(0, 1fr) 42px; align-items: center;
    gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.rank-number { color: var(--muted); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.compact-poster { display: block; width: 58px; height: 76px; overflow: hidden; border-radius: 6px; background: var(--surface); }
.compact-image { width: 100%; height: 100%; object-fit: cover; }
.compact-copy { min-width: 0; }
.compact-copy h3 { margin: 0 0 2px; font-size: 15px; }
.compact-copy p { margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.compact-copy > span { display: -webkit-box; overflow: hidden; color: #CBD5E1; font-size: 12px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.compact-score { color: var(--accent); font-size: 14px; font-weight: 800; text-align: right; }
.ranking-panel { padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { margin-bottom: 12px; }
.panel-heading .eyebrow { margin-bottom: 3px; }
.ranking-list { margin: 0; padding: 0; list-style: none; }
.ranking-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ranking-index { color: var(--muted); font-size: 13px; font-weight: 800; }
.ranking-list li:nth-child(-n+3) .ranking-index { color: var(--accent); }
.ranking-list li div { min-width: 0; }
.ranking-list a { display: block; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list small { display: block; color: var(--muted); font-size: 11px; }
.ranking-list b { color: var(--accent); font-size: 13px; }
.ranking-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }

/* 剧集条目 */
.series-list { display: grid; gap: 12px; }
.series-card {
    display: grid; grid-template-columns: 105px minmax(0, 1fr) 70px; gap: 17px;
    align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 11px;
    background: rgba(30, 41, 59, .62);
}
.series-thumb { width: 105px; height: 118px; overflow: hidden; border-radius: 7px; background: var(--bg-deep); }
.series-image { width: 100%; height: 100%; object-fit: cover; }
.series-content { min-width: 0; }
.series-meta { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 11px; }
.series-content h3 { margin: 4px 0; font-size: 17px; }
.series-content p { margin: 0; color: #CBD5E1; font-size: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag-row span { padding: 2px 8px; border-radius: 5px; background: rgba(34, 211, 238, .09); color: #A5F3FC; font-size: 11px; }
.series-rating { display: flex; flex-direction: column; align-items: center; }
.series-rating strong { color: var(--accent); font-size: 21px; }
.series-rating small { color: var(--muted); font-size: 10px; }

/* 主题合集 */
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.collection-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.collection-card h3 { margin: 0; font-size: 16px; }
.collection-card > p { min-height: 44px; margin: 8px 0 13px; color: var(--muted); font-size: 12px; }
.collection-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.collection-card li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.collection-card li span { color: var(--muted); white-space: nowrap; }

/* 访问方式收尾 */
.guide-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
    margin-top: 34px; margin-bottom: 48px; padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(115deg, rgba(30, 41, 59, .9), rgba(15, 23, 42, .55));
}
.guide-copy h2 { margin: 0 0 9px; font-size: 23px; }
.guide-copy p:last-child { margin: 0; color: #CBD5E1; font-size: 13px; }
.guide-links { display: grid; gap: 7px; }
.guide-links a { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 12px; border-radius: 8px; background: rgba(2, 6, 23, .32); }
.guide-links a span { font-size: 13px; font-weight: 700; }
.guide-links a b { color: var(--muted); font-size: 11px; font-weight: 400; }
.guide-links a i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 22px; font-style: normal; }

/* 内页通用 */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin: 23px 0; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--accent); }
.info-page { padding-bottom: 55px; }
.info-hero { max-width: 850px; padding: 35px 0 27px; }
.info-hero h1, .detail-summary h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; }
.info-hero > p:not(.eyebrow) { max-width: 760px; margin: 15px 0 20px; color: #CBD5E1; font-size: 16px; }
.info-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 16px; }
.info-card { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h2 { margin: 0 0 10px; font-size: 18px; }
.info-card p { margin: 8px 0; color: #CBD5E1; font-size: 13px; }
.domain-display { overflow-wrap: anywhere; padding: 12px 14px; border-radius: 8px; background: var(--bg-deep); color: var(--accent) !important; font-size: 17px !important; font-weight: 700; }
.check-list, .step-list { margin: 10px 0 0; padding-left: 21px; color: #CBD5E1; font-size: 13px; }
.check-list li, .step-list li { padding: 4px 0; }
.text-link { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 13px; }
.device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.device-card { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.device-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 13px; border-radius: 10px; background: rgba(34, 211, 238, .12); color: var(--accent); font-size: 18px; font-weight: 800; }
.device-card h2 { margin: 0; font-size: 18px; }
.device-card p, .device-card li { color: #CBD5E1; font-size: 12px; }
.device-card ul { padding-left: 19px; }
.device-card li { padding: 3px 0; }
.download-state { display: flex; gap: 19px; align-items: flex-start; padding: 25px; border: 1px solid rgba(34, 211, 238, .28); border-radius: var(--radius); background: rgba(34, 211, 238, .06); }
.download-symbol { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: rgba(34, 211, 238, .15); color: var(--accent); font-size: 25px; font-weight: 900; }
.download-state h2 { margin: 0 0 8px; font-size: 20px; }
.download-state p { max-width: 800px; margin: 0 0 17px; color: #CBD5E1; font-size: 13px; }

/* 作品详情 */
.detail-page { padding-bottom: 55px; }
.detail-hero { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; padding: 12px 0 32px; }
.detail-poster { overflow: hidden; aspect-ratio: 2 / 2.85; max-width: 270px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.detail-image { width: 100%; height: 100%; object-fit: cover; }
.detail-summary { min-width: 0; padding-top: 9px; }
.detail-lead { max-width: 820px; margin: 14px 0; color: #CBD5E1; font-size: 16px; }
.detail-score { display: inline-flex; align-items: baseline; gap: 9px; margin: 2px 0 18px; }
.detail-score strong { color: var(--accent); font-size: 28px; }
.detail-score span { color: var(--muted); font-size: 12px; }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.detail-facts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(30, 41, 59, .7); }
.detail-facts span, .detail-facts b { display: block; }
.detail-facts span { color: var(--muted); font-size: 11px; }
.detail-facts b { margin-top: 3px; font-size: 13px; }
.play-status { display: flex; gap: 11px; margin-top: 17px; padding: 13px 15px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 9px; background: rgba(2, 6, 23, .35); }
.status-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #FBBF24; }
.play-status b { font-size: 13px; }
.play-status p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.detail-body-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .7fr); gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-article h2, .detail-aside h2 { margin: 0 0 10px; font-size: 19px; }
.detail-article h2:not(:first-child) { margin-top: 25px; }
.detail-article p { margin: 0; color: #CBD5E1; font-size: 14px; line-height: 1.9; }
.detail-aside { align-self: start; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.credit-list { margin: 0; }
.credit-list div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.credit-list dt { color: var(--muted); }
.credit-list dd { margin: 0; }
.aside-callout { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.aside-callout b { font-size: 14px; }
.aside-callout p { color: var(--muted); font-size: 12px; }
.aside-callout a { color: var(--accent); font-size: 12px; }
.error-state { min-height: 440px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 50px; }
.error-state h1 { margin: 0; font-size: 32px; }
.error-state p:not(.eyebrow) { max-width: 620px; color: #CBD5E1; }
.error-code { margin: 0; color: var(--accent); font-size: 64px; font-weight: 900; line-height: 1.2; }

/* 页脚 */
.site-footer { margin-top: 25px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-inner { width: min(var(--content), calc(100% - 48px)); margin: auto; padding: 27px 0 20px; }
.footer-brand > a { font-size: 17px; font-weight: 800; }
.footer-brand p, .footer-note, .copyright { color: var(--muted); font-size: 11px; }
.footer-brand p { margin: 5px 0 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 21px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-links a { color: #CBD5E1; font-size: 12px; }
.footer-note { margin: 13px 0 4px; }
.copyright { margin: 0; }

/* 平板与移动设备 */
@media (max-width: 1050px) {
    .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .split-section { grid-template-columns: minmax(0, 1.5fr) minmax(250px, .85fr); gap: 18px; }
    .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 12px; }
    .home-intro { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
    .intro-aside { max-width: 520px; }
    .split-section { grid-template-columns: 1fr; }
    .ranking-panel { display: grid; grid-template-columns: 1fr 1.7fr; gap: 0 20px; }
    .ranking-list { grid-column: 2; grid-row: 1 / 3; }
    .ranking-note { align-self: end; }
    .collection-grid { grid-template-columns: 1fr 1fr; }
    .collection-card:last-child { grid-column: 1 / -1; }
    .detail-hero { grid-template-columns: 220px minmax(0, 1fr); gap: 23px; }
    .detail-poster { max-width: 220px; }
    .detail-body-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .content-width, .header-inner, .footer-inner { width: min(100% - 30px, var(--content)); }
    .header-inner { min-height: 64px; }
    .brand { font-size: 18px; }
    .brand img { width: 37px; height: 37px; }
    .menu-toggle { display: inline-flex; }
    .primary-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        padding: 9px 15px 14px; flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--bg-deep); border-bottom: 1px solid var(--line);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 11px 13px; }
    .home-intro { padding-block: 27px 26px; }
    .home-intro h1 { font-size: 29px; }
    .intro-lead { font-size: 14px; }
    .section-heading h2 { font-size: 20px; }
    .content-section { padding-top: 29px; }
    .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; }
    .poster-info h3 { font-size: 13px; }
    .poster-info p { font-size: 10px; }
    .card-more { font-size: 10px; }
    .series-card { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 10px; }
    .series-thumb { width: 78px; height: 105px; }
    .series-rating { grid-column: 2; flex-direction: row; gap: 7px; justify-content: flex-start; }
    .series-rating strong { font-size: 16px; }
    .series-content p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
    .collection-grid { grid-template-columns: 1fr; }
    .collection-card:last-child { grid-column: auto; }
    .collection-card > p { min-height: 0; }
    .guide-section { grid-template-columns: 1fr; gap: 18px; padding: 18px; margin-top: 25px; }
    .info-content, .device-grid { grid-template-columns: 1fr; }
    .info-hero { padding-top: 22px; }
    .info-hero h1, .detail-summary h1 { font-size: 29px; }
    .detail-hero { grid-template-columns: 145px minmax(0, 1fr); gap: 15px; }
    .detail-poster { max-width: 145px; }
    .detail-summary { padding-top: 0; }
    .detail-lead { margin: 8px 0; font-size: 13px; }
    .detail-score { margin-bottom: 9px; }
    .detail-score strong { font-size: 22px; }
    .detail-facts { gap: 6px; }
    .detail-facts div { padding: 7px; }
    .detail-facts b { font-size: 11px; }
    .play-status { grid-column: 1 / -1; margin-top: 12px; padding: 10px; }
    .download-state { padding: 18px; }
}
@media (max-width: 430px) {
    .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
    .poster-info h3 { font-size: 14px; }
    .compact-item { grid-template-columns: 21px 48px minmax(0, 1fr) 35px; gap: 8px; }
    .compact-poster { width: 48px; height: 65px; }
    .compact-copy > span { font-size: 11px; }
    .compact-score { font-size: 12px; }
    .ranking-panel { display: block; }
    .ranking-list { display: block; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-poster { width: 165px; max-width: 165px; }
    .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-heading { align-items: start; }
    .section-count { padding-top: 6px; }
    .footer-links { gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
