:root {
  --bg-page: #f5f8fc;
  --bg-panel: #ffffff;
  --bg-ice: #eef5ff;
  --text-main: #102341;
  --text-sub: #5c7293;
  --brand: #1b56b4;
  --brand-hover: #2470e0;
  --line: rgba(27, 86, 180, 0.12);
  --shadow: 0 10px 30px -12px rgba(27, 86, 180, 0.15);
  --radius-lg: 22px;
  --radius-md: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--brand); color: #fff; padding: 8px 16px; z-index: 1000; transition: top 0.2s; border-radius: 0 0 8px 0; }
.skip-link:focus { top: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.brand img { height: 32px; width: auto; border-radius: 6px; }
.brand span { color: var(--brand); }
.site-nav { display: none; gap: 28px; }
.site-nav a { color: var(--text-sub); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-primary { background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(27, 86, 180, 0.2); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 86, 180, 0.3); }
.btn-outline { background: #fff; color: var(--text-main); padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline:hover { background: var(--bg-ice); border-color: var(--brand); color: var(--brand); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--text-main); cursor: pointer; transition: all 0.2s; }
.icon-button:hover { background: var(--bg-ice); border-color: var(--brand); color: var(--brand); }
.menu-btn { display: inline-flex; }
@media (min-width: 768px) { .site-nav { display: flex; } .menu-btn { display: none; } }

/* Dialog / Drawer */
dialog { border: none; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
dialog::backdrop { background: rgba(16, 35, 65, 0.4); backdrop-filter: blur(4px); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 280px; max-width: 80vw; background: #fff; border-right: 1px solid var(--line); border-radius: 0 20px 20px 0; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.dialog-head strong { font-size: 16px; color: var(--text-main); }
.drawer-nav { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.drawer-nav a { display: block; padding: 10px 16px; border-radius: 10px; color: var(--text-sub); font-weight: 500; transition: all 0.2s; }
.drawer-nav a:hover, .drawer-nav a.active { background: var(--bg-ice); color: var(--text-main); }
.drawer-caption { padding: 20px; font-size: 12px; color: var(--text-sub); text-align: center; border-top: 1px solid var(--line); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 60px 0 40px; }
.hero-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; opacity: 0.4; filter: saturate(0.6) brightness(1.1) contrast(0.9); z-index: 0; pointer-events: none; }
.hero-tile { display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, #f5f8fc 0%, #f5f8fc 40%, rgba(245, 248, 252, 0.8) 70%, rgba(245, 248, 252, 0.9) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 40px; }
.hero-copy { max-width: 600px; }
.hero-kicker { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: 1px; margin-bottom: 12px; }
.hero-copy h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; font-weight: 800; color: var(--text-main); letter-spacing: -1px; margin-bottom: 20px; }
.hero-copy h1 span { color: var(--brand); }
.hero-copy p { font-size: 16px; color: var(--text-sub); margin-bottom: 24px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 6px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--text-sub); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--bg-ice); border-color: var(--brand); color: var(--text-main); font-weight: 700; }
.hero-side-note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); max-width: 320px; }
.hero-side-note strong { display: block; font-size: 18px; color: var(--text-main); margin-bottom: 6px; }
.hero-side-note span { font-size: 13px; color: var(--text-sub); }
@media (min-width: 768px) { .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; } .hero-side-note { width: 300px; margin-top: 40px; } }

/* General Section */
section { padding: 60px 0; }
.section-heading { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
@media (min-width: 768px) { .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-kicker { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.section-heading h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.heading-note { font-size: 14px; color: var(--text-sub); max-width: 300px; }
.text-link { color: var(--brand); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.text-link:hover { gap: 8px; }
.text-link::after { content: "→"; }

/* Card Grid */
.film-grid, .new-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .film-grid, .new-wall { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .film-grid, .new-wall { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.film-card { display: flex; flex-direction: column; }
.film-card > a { display: flex; flex-direction: column; height: 100%; }
.poster { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-ice); aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.film-card:hover .poster img { transform: scale(1.04); }
.poster-meta { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.9); color: var(--brand); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px); display: flex; gap: 6px; }
.poster-meta span { color: var(--text-sub); font-weight: 500; }
.poster-action { position: absolute; bottom: 10px; left: 10px; right: 10px; background: rgba(27, 86, 180, 0.8); color: #fff; text-align: center; padding: 6px; border-radius: 8px; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); opacity: 0; transform: translateY(10px); transition: all 0.3s; }
.film-card:hover .poster-action { opacity: 1; transform: translateY(0); }
.film-card h3 { font-size: 15px; font-weight: 700; color: var(--text-main); margin: 12px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-card p { font-size: 13px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.sample-note { font-size: 13px; color: var(--text-sub); margin-top: 24px; text-align: center; }

/* Featured */
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(4, 1fr); } }
.featured-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.featured-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.featured-art { position: relative; aspect-ratio: 16 / 9; background: var(--bg-ice); overflow: hidden; }
.featured-art img { width: 100%; height: 100%; object-fit: cover; }
.featured-art .genre-tag { position: absolute; bottom: 10px; left: 10px; background: var(--bg-ice); color: var(--brand); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.featured-copy { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.featured-copy span { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.featured-copy h3 { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.featured-copy p { font-size: 13px; color: var(--text-sub); line-height: 1.5; }

/* Genres */
.section-prose { max-width: 800px; margin-bottom: 32px; color: var(--text-sub); }
.section-prose p { margin-bottom: 12px; }
.genre-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .genre-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .genre-grid { grid-template-columns: repeat(3, 1fr); } }
.genre-card { background: var(--bg-ice); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; display: flex; align-items: flex-start; gap: 16px; transition: all 0.2s; }
.genre-card:hover { border-color: var(--brand); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.genre-mark { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--brand); flex-shrink: 0; border: 1px solid var(--line); }
.genre-card strong { display: block; font-size: 16px; color: var(--text-main); margin-bottom: 4px; }
.genre-card small { font-size: 13px; color: var(--text-sub); line-height: 1.5; display: block; }

/* Lab */
.lab-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lab-inner { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 1024px) { .lab-inner { flex-direction: row; align-items: center; } .lab-copy { width: 45%; } .lab-grid { width: 55%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.lab-copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--text-main); margin-bottom: 16px; }
.lab-copy p { color: var(--text-sub); margin-bottom: 24px; }
.format-notes { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.format-notes div { background: var(--bg-page); padding: 16px; border-radius: 12px; border: 1px solid var(--line); }
.format-notes dt { font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.format-notes dd { font-size: 13px; color: var(--text-sub); }
.content-footnote { font-size: 12px; color: var(--text-sub); margin-bottom: 24px; display: block; }
.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lab-grid a { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3 / 4; display: block; background: var(--bg-ice); border: 1px solid var(--line); }
.lab-grid img { width: 100%; height: 100%; object-fit: cover; }
.lab-grid span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); padding: 8px; font-size: 13px; font-weight: 700; color: var(--text-main); text-align: center; }

/* Ranking */
.ranking-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 32px; box-shadow: var(--shadow); }
@media (min-width: 1024px) { .ranking-panel { flex-direction: row; align-items: center; } .ranking-copy { flex: 1; } .mini-ranking { flex: 1.5; } }
.ranking-copy h2 { font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.ranking-copy p { color: var(--text-sub); font-size: 14px; }
.mini-ranking { display: flex; flex-direction: column; gap: 12px; }
.mini-ranking li { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--bg-page); border-radius: 12px; transition: background 0.2s; }
.mini-ranking li:hover { background: var(--bg-ice); }
.rank-num { font-size: 18px; font-weight: 800; color: var(--brand); width: 24px; text-align: center; }
.rank-info { flex: 1; }
.rank-info strong { display: block; font-size: 15px; color: var(--text-main); }
.rank-info small { font-size: 12px; color: var(--text-sub); }
.rank-arrow { color: var(--text-sub); font-size: 18px; }
.ranking-action { display: flex; justify-content: center; margin-top: 16px; }
@media (min-width: 1024px) { .ranking-action { margin-top: 0; } }

/* Watchlist */
.watchlist-inner { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 1024px) { .watchlist-inner { flex-direction: row; align-items: center; } .watchlist-copy { flex: 1; } .watchlist-card { flex: 1; } }
.watchlist-copy h2 { font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 16px; }
.watchlist-copy p { color: var(--text-sub); margin-bottom: 12px; font-size: 14px; }
.watchlist-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.watchlist-item { display: flex; gap: 12px; align-items: flex-start; }
.watchlist-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0; }
.watchlist-item strong { display: block; font-size: 15px; color: var(--text-main); margin-bottom: 2px; }
.watchlist-item small { font-size: 13px; color: var(--text-sub); }

/* FAQ */
.faq-inner { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 1024px) { .faq-inner { flex-direction: row; } .faq-intro { flex: 1; } .faq-list { flex: 1.5; } }
.faq-intro h2 { font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 16px; }
.faq-intro p { color: var(--text-sub); font-size: 14px; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s; }
details:hover, details[open] { border-color: var(--brand); }
summary { padding: 16px 20px; font-weight: 700; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: space-between; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--brand); font-size: 20px; font-weight: 400; transition: transform 0.3s; }
details[open] summary span { transform: rotate(45deg); }
details p { padding: 0 20px 16px; color: var(--text-sub); font-size: 14px; line-height: 1.6; }

/* Download */
.download-inner { background: linear-gradient(135deg, #fff 0%, var(--bg-ice) 100%); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 32px; box-shadow: var(--shadow); }
@media (min-width: 1024px) { .download-inner { flex-direction: row; align-items: center; } .download-copy { flex: 1; } .download-options { flex: 1; } }
.download-copy h2 { font-size: 28px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.download-copy p { color: var(--text-sub); }
.download-options { display: flex; flex-direction: column; gap: 16px; }
.platform-button { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 20px; transition: all 0.2s; }
.platform-button:hover { border-color: var(--brand); background: var(--bg-page); transform: translateY(-1px); }
.platform-button .icon { font-size: 24px; color: var(--brand); }
.platform-button .info { flex: 1; text-align: left; }
.platform-button strong { display: block; font-size: 16px; color: var(--text-main); }
.platform-button small { font-size: 13px; color: var(--text-sub); }
.platform-button .arrow { color: var(--text-sub); font-size: 20px; }
.download-note { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 8px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 60px 0 20px; }
.footer-main { display: flex; flex-direction: column; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-main { flex-direction: row; justify-content: space-between; } .footer-brand { max-width: 300px; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-sub); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { font-size: 14px; color: var(--text-sub); transition: color 0.2s; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-sub); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom a { color: var(--text-sub); text-decoration: underline; }
.footer-bottom a:hover { color: var(--brand); }
.update-time { font-size: 12px; color: var(--text-sub); margin-top: 8px; display: block; }

/* Mobile Download Bar */
.mobile-download { position: fixed; bottom: 16px; left: 16px; right: 16px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 8px 24px rgba(27, 86, 180, 0.15); z-index: 90; transition: transform 0.3s; }
@media (min-width: 768px) { .mobile-download { display: none; } }
.mobile-download .info { display: flex; align-items: center; gap: 10px; }
.mobile-download .icon { width: 36px; height: 36px; background: var(--bg-ice); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brand); font-size: 18px; }
.mobile-download .info div { display: flex; flex-direction: column; }
.mobile-download .info strong { font-size: 14px; color: var(--text-main); }
.mobile-download .info small { font-size: 11px; color: var(--text-sub); }
.mobile-download .btn-primary { padding: 8px 16px; font-size: 13px; }

/* Copy Dialog */
.copy-dialog { background: #fff; border-radius: var(--radius-lg); padding: 24px; width: 90%; max-width: 400px; margin: auto; border: 1px solid var(--line); box-shadow: var(--shadow); }
.copy-dialog .dialog-head { padding: 0 0 16px; border-bottom: none; }
.copy-dialog .dialog-head strong { font-size: 18px; }
.copy-dialog p { font-size: 14px; color: var(--text-sub); margin-bottom: 16px; }
.copy-url { background: var(--bg-page); border: 1px solid var(--line); padding: 12px; border-radius: 8px; font-family: monospace; font-size: 13px; color: var(--text-main); word-break: break-all; margin-bottom: 16px; user-select: all; }
.copy-dialog .btn-primary { width: 100%; }
.copy-status { display: block; text-align: center; font-size: 13px; color: var(--brand); margin-top: 12px; min-height: 20px; }