/* Precision: shared visual tokens and responsive search workspace. */
:root {
    --primary: #245a43;
    --primary-hover: #184632;
    --bg: #fff;
    --card-bg: #fff;
    --text: #17221e;
    --text-muted: #65736d;
    --border: #e3e9e5;
    --surface: #f3f6f4;
    --accent-soft: #eaf2ed;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 8px rgba(22, 45, 32, .025);
    --hover-shadow: 0 8px 24px rgba(22, 45, 32, .08);
}
[data-theme="dark"] {
    color-scheme: dark;
    --primary: #a3d8bc;
    --primary-hover: #c2e8d2;
    --bg: #131a17;
    --card-bg: #19231e;
    --text: #edf3ef;
    --text-muted: #a2b2a8;
    --border: #2b3931;
    --surface: #1c2721;
    --accent-soft: #263e30;
    --shadow: none;
    --hover-shadow: 0 8px 24px #0003;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
:root {
    --icon-cloud: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-cloud%22%3E%3Cpath%20d%3D%22M18%2010h-1.26A8%208%200%201%200%209%2020h9a5%205%200%200%200%200-10z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
    --icon-search: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-search%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22%3E%3C%2Fcircle%3E%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2216.65%22%20y2%3D%2216.65%22%3E%3C%2Fline%3E%3C%2Fsvg%3E");
    --icon-moon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-moon%22%3E%3Cpath%20d%3D%22M21%2012.79A9%209%200%201%201%2011.21%203%207%207%200%200%200%2021%2012.79z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
    --icon-sun: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-sun%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%225%22%3E%3C%2Fcircle%3E%3Cline%20x1%3D%2212%22%20y1%3D%221%22%20x2%3D%2212%22%20y2%3D%223%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2212%22%20y1%3D%2221%22%20x2%3D%2212%22%20y2%3D%2223%22%3E%3C%2Fline%3E%3Cline%20x1%3D%224.22%22%20y1%3D%224.22%22%20x2%3D%225.64%22%20y2%3D%225.64%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2218.36%22%20y1%3D%2218.36%22%20x2%3D%2219.78%22%20y2%3D%2219.78%22%3E%3C%2Fline%3E%3Cline%20x1%3D%221%22%20y1%3D%2212%22%20x2%3D%223%22%20y2%3D%2212%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2221%22%20y1%3D%2212%22%20x2%3D%2223%22%20y2%3D%2212%22%3E%3C%2Fline%3E%3Cline%20x1%3D%224.22%22%20y1%3D%2219.78%22%20x2%3D%225.64%22%20y2%3D%2218.36%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2218.36%22%20y1%3D%225.64%22%20x2%3D%2219.78%22%20y2%3D%224.22%22%3E%3C%2Fline%3E%3C%2Fsvg%3E");
    --icon-down: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-arrow-down%22%3E%3Cline%20x1%3D%2212%22%20y1%3D%225%22%20x2%3D%2212%22%20y2%3D%2219%22%3E%3C%2Fline%3E%3Cpolyline%20points%3D%2219%2012%2012%2019%205%2012%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    --icon-back: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-arrow-left%22%3E%3Cline%20x1%3D%2219%22%20y1%3D%2212%22%20x2%3D%225%22%20y2%3D%2212%22%3E%3C%2Fline%3E%3Cpolyline%20points%3D%2212%2019%205%2012%2012%205%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    --icon-file: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-file%22%3E%3Cpath%20d%3D%22M13%202H6a2%202%200%200%200%202v16a2%202%200%200%202%202h12a2%202%200%200%202-2V9z%22%3E%3C%2Fpath%3E%3Cpolyline%20points%3D%2213%202%2013%209%2020%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    --icon-up-right: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-arrow-up-right%22%3E%3Cline%20x1%3D%227%22%20y1%3D%2217%22%20x2%3D%2217%22%20y2%3D%227%22%3E%3C%2Fline%3E%3Cpolyline%20points%3D%227%207%2017%207%2017%2017%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    --icon-share: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-share-2%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%225%22%20r%3D%223%22%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2212%22%20r%3D%223%22%3E%3C%2Fcircle%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2219%22%20r%3D%223%22%3E%3C%2Fcircle%3E%3Cline%20x1%3D%228.59%22%20y1%3D%2213.51%22%20x2%3D%2215.42%22%20y2%3D%2217.49%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2215.41%22%20y1%3D%226.51%22%20x2%3D%228.59%22%20y2%3D%2210.49%22%3E%3C%2Fline%3E%3C%2Fsvg%3E");
}
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; background: currentColor; mask: var(--icon) center / contain no-repeat; -webkit-mask: var(--icon) center / contain no-repeat; vertical-align: middle; }
.brand-cloud { --icon: var(--icon-cloud); width: 34px; height: 34px; color: var(--primary); }
.search-symbol { --icon: var(--icon-search); }
.icon-share { --icon: var(--icon-share); width: 18px; height: 18px; }
.icon-moon { --icon: var(--icon-moon); }
.icon-sun { --icon: var(--icon-sun); }
.icon-down { --icon: var(--icon-down); }
.icon-back { --icon: var(--icon-back); }
.icon-file { --icon: var(--icon-file); }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; z-index: 2000; background: var(--card-bg); color: var(--primary); }
.skip-link:focus { top: 12px; }
.search-page .container { max-width: 1280px; padding: 0 32px; }
.topbar { border-bottom: 1px solid var(--border); background: var(--card-bg); }
.topbar-inner { max-width: 1280px; height: 60px; margin: auto; padding: 0 32px; display: flex; align-items: center; gap: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 27px; font-weight: 750; letter-spacing: -.8px; white-space: nowrap; }
.primary-nav { display: flex; align-self: stretch; align-items: stretch; gap: 36px; }
.primary-nav a { display: flex; align-items: center; color: var(--text-muted); text-decoration: none; font-size: 14px; position: relative; }
.primary-nav a:hover { color: var(--primary); }
.primary-nav .nav-current { color: var(--primary); font-weight: 650; }
.nav-current::after { content: ''; height: 2px; position: absolute; inset: auto 0 0; background: var(--primary); }
.search-page .theme-toggle { position: static; margin-left: auto; }
.theme-toggle { border-radius: 8px; box-shadow: none; width: 44px; height: 44px; border-color: transparent; background: var(--surface); color: var(--text); }
.theme-toggle:hover { transform: none; background: var(--accent-soft); box-shadow: none; }
.search-hero { position: relative; margin: 0 calc((min(100vw, 1280px) - 100vw) / 2 - 32px); padding: 28px 24px 16px; text-align: center; background: #f5f8f6 url('/static/img/search-waves.webp') center / cover no-repeat; }
.hero-content { max-width: 760px; margin: auto; }
.search-hero h1 { font-size: 44px; line-height: 1.3; letter-spacing: -1.5px; font-weight: 750; margin: 0; }
.hero-description { margin-top: 12px; font-size: 18px; color: var(--text-muted); letter-spacing: .5px; }
.search-page .search-form { max-width: none; margin: 24px 0 0; display: flex; align-items: stretch; gap: 10px; }
.search-page .search-box { flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #cddad1; border-radius: 7px; background: var(--card-bg); box-shadow: none; z-index: auto; transition: border-color .18s, box-shadow .18s; }
.search-page .search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); transform: none; }
.search-box .search-symbol { color: var(--text-muted); }
.search-page .search-input { width: 100%; min-width: 0; padding: 17px 0; font-size: 16px; line-height: 24px; }
.search-input::placeholder { color: var(--text-muted); opacity: .8; }
.search-shortcut { white-space: nowrap; font-family: inherit; font-size: 12px; color: var(--text-muted); padding: 3px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.search-page .search-btn { width: auto; flex: 0 0 auto; border-radius: 7px; padding: 0 30px; min-height: 56px; min-width: 110px; font-size: 16px; background: var(--primary); color: #fff; transition: background .18s, transform .12s; }
.search-page .search-btn:hover { background: var(--primary-hover); transform: none; opacity: 1; }
.search-page .search-btn:active { transform: scale(.97); }
.search-support { margin-top: 12px; color: var(--text-muted); font-size: 13px; }
[data-theme="dark"] .search-hero { background: var(--surface); }
[data-theme="dark"] .search-page .search-box { border-color: var(--border); }
[data-theme="dark"] .search-page .search-btn { color: #142b1d; }
.search-page .nav-back-home { position: static; margin: 24px 0; min-height: 44px; padding: 0 14px; align-items: center; gap: 8px; font-size: 14px; border-radius: 6px; box-shadow: none; background: var(--surface); animation: none; }
.search-page .nav-back-home:hover { background: var(--accent-soft); color: var(--primary); transform: none; }
.has-query .search-hero { padding-top: 32px; padding-bottom: 28px; }
.has-query .search-hero h1 { font-size: 30px; }
.has-query .hero-description { font-size: 15px; }
.has-query .search-form { margin-top: 20px; }
/* A single tab model at every viewport; panels remain SSR rendered. */
.search-page .rankings-wrapper { max-width: none; width: 100%; margin: 8px 0 0; animation: none; }
.search-page .rankings-ctrl-bar { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.search-page .rankings-segmented-nav { display: flex; gap: 26px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.search-page .seg-btn { display: flex; align-items: center; justify-content: center; position: relative; min-height: 50px; padding: 0 8px; border: 0; border-radius: 0; background: transparent; font-size: 15px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: color .18s; }
.search-page .seg-btn::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .2s ease; }
.search-page .seg-btn.active { color: var(--primary); background: transparent; font-weight: 650; box-shadow: none; }
.search-page .seg-btn.active::after { transform: scaleX(1); }
.search-page .seg-btn:hover { color: var(--primary); }
.search-page .rankings-cards-grid { display: block; }
.search-page .rankings-right-col { display: contents; }
.search-page .rank-card { display: none; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.search-page .rank-card.show-mobile { display: block; animation: panelEnter .24s ease both; }
.search-page .rank-card-latest .rank-card-header { display: none; }
.search-page .rank-card-header { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.search-page .rank-card-title { font-size: 18px; font-weight: 650; margin: 0; }
.search-page .rank-card-pill { font-size: 12px; color: var(--text-muted); background: transparent; }
.latest-poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 18px; }
.poster-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--text); position: relative; border-radius: 6px; }
.poster-thumb-box { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--surface); }
.poster-thumb-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.poster-card:hover .poster-thumb-img { transform: scale(1.035); filter: brightness(.86); }
.poster-open { position: absolute; top: 42%; left: 50%; transform: translate(-50%, 8px); opacity: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 12px; background: #14221dcc; color: white; font-size: 13px; border-radius: 6px; pointer-events: none; transition: opacity .2s, transform .2s; }
.poster-open .ui-icon { width: 16px; height: 16px; }
.poster-card:hover .poster-open, .poster-card:focus-visible .poster-open { transform: translate(-50%, 0); opacity: 1; }
.poster-card-info { padding-top: 9px; }
.poster-card-title { font-size: 14px; font-weight: 550; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.poster-badge-score { position: absolute; bottom: 7px; left: 7px; color: #ffd279; font-size: 13px; font-weight: 700; background: #111b; border-radius: 4px; padding: 1px 5px; font-variant-numeric: tabular-nums; }
.poster-badge-tag { position: absolute; top: 7px; right: 7px; max-width: calc(100% - 14px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #111b; color: white; border-radius: 4px; font-size: 11px; padding: 2px 5px; }
.poster-fallback-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 12px; color: var(--text-muted); background: var(--surface); }
.poster-fallback-ph .ui-icon { width: 28px; height: 28px; }
.latest-more-wrap { display: flex; justify-content: center; margin: 30px 0; }
.btn-load-more-posters { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 34px; border: 0; border-radius: 24px; background: var(--surface); color: var(--primary); font-size: 14px; cursor: pointer; transition: background .18s; }
.btn-load-more-posters:hover { background: var(--accent-soft); }
.btn-load-more-posters .ui-icon { width: 17px; height: 17px; }
.search-page .rank-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; padding: 0; margin: 0; list-style: none; }
.search-page .rank-card-item { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 72px; padding: 10px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.search-page .rank-card-item:hover { background: var(--surface); transform: none; }
.search-page .rank-num { width: 28px; flex-shrink: 0; color: var(--text-muted); background: transparent; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; box-shadow: none; }
.search-page .rank-top-1, .search-page .rank-top-2, .search-page .rank-top-3 { color: var(--primary); font-weight: 700; }
.search-page .rank-title-link { color: var(--text); font-size: 15px; text-decoration: none; flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.search-page .rank-tag { color: var(--text-muted); background: transparent; font-size: 12px; flex-shrink: 0; }
.search-page .rank-quick-btn { display: flex; gap: 5px; align-items: center; justify-content: center; min-width: 50px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 6px; color: var(--primary); background: var(--surface); font-size: 13px; cursor: pointer; box-shadow: none; }
.search-page .rank-quick-btn:hover { background: var(--accent-soft); transform: none; }
.rank-quick-btn .ui-icon { width: 15px; height: 15px; }
/* Search results use one quiet list, not nested result cards. */
.search-page .tabs-wrapper { justify-content: flex-start; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.search-page .tabs { padding: 0; gap: 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: 100%; overflow-x: auto; }
.search-page .tab-btn { min-height: 52px; padding: 10px 4px; border-radius: 0; border-bottom: 2px solid transparent; font-size: 15px; white-space: nowrap; }
.search-page .tab-btn.active { color: var(--primary); background: transparent; box-shadow: none; border-bottom-color: var(--primary); }
.search-page .result-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.search-page .result-link { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 22px 44px 22px 4px; box-shadow: none; background: transparent; }
.search-page .result-link:hover { background: var(--surface); transform: none; box-shadow: none; }
.search-page .result-link::before { display: none; }
.search-page .result-link::after { content: ''; position: absolute; top: 28px; right: 12px; width: 20px; height: 20px; background: var(--text-muted); mask: var(--icon-up-right) center / contain no-repeat; -webkit-mask: var(--icon-up-right) center / contain no-repeat; }
.search-page .result-title { font-size: 16px; margin-bottom: 10px; -webkit-line-clamp: 3; line-height: 1.65; font-weight: 550; }
.search-page .result-meta-row { border: 0; padding: 0; justify-content: flex-start; flex-wrap: wrap; gap: 16px; }
.search-page .pan-badge { font-size: 12px; padding: 3px 7px; font-weight: 500; }
.search-page .result-date { font-size: 12px; }
.search-page .status-area, .search-page .empty-tab { background: var(--surface); box-shadow: none; border: 0; }
.search-page .status-icon { animation: none; width: 36px; height: 36px; margin: 0 auto 16px; font-size: 0; background: var(--primary); mask: var(--icon-search) center / contain no-repeat; -webkit-mask: var(--icon-search) center / contain no-repeat; }
.search-page .supplement-hint { justify-content: flex-start; border: 0; background: transparent; padding-left: 4px; }
.search-page .supplement-spinner, .search-page .search-spinner { border-top-color: var(--primary); border-right-color: var(--primary); }
.search-page .site-footer { margin-top: 40px; padding: 24px 0 30px; border-top: 1px solid var(--border); text-align: left; font-size: 12px; line-height: 1.8; }
/* ============================================================
   Subject & Content Pages (影视详情页与说明页统一森林绿规范)
   ============================================================ */
.subject-page, .about-page { background: var(--bg); color: var(--text); min-height: 100vh; }
.subject-container, .about-container { max-width: 1000px; margin: 0 auto; padding: 12px 24px 60px; box-sizing: border-box; }
.subject-nav, .about-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; padding-right: 64px; }
.subject-nav .brand-logo, .about-nav .brand-logo { display: inline-flex; align-items: center; gap: 8px; margin: 0; text-decoration: none; }
.subject-nav .gradient-text, .about-nav .gradient-text { font-size: 22px; font-weight: 750; color: var(--text); background: none; -webkit-text-fill-color: var(--text); }
.subject-page .nav-back-home, .about-page .nav-back-home { position: static; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; text-decoration: none; transition: background .18s, color .18s; }
.subject-page .nav-back-home:hover, .about-page .nav-back-home:hover { background: var(--accent-soft); color: var(--primary); }

/* 面包屑导航 */
.subject-breadcrumb { margin-bottom: 18px; font-size: 13px; color: var(--text-muted); }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; transition: color .18s; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text); font-weight: 600; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-sep { color: var(--border); user-select: none; }

/* 详情卡片本体 */
.subject-card, .about-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; box-sizing: border-box; }
.subject-layout { display: flex; gap: 28px; align-items: flex-start; }
.subject-poster-col { flex: 0 0 200px; max-width: 200px; }
.poster-wrapper { position: relative; border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.subject-poster { width: 100%; height: auto; display: block; aspect-ratio: 2 / 3; object-fit: cover; }
.poster-placeholder { width: 100%; aspect-ratio: 2 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--text-muted); background: var(--surface); }
.score-badge { position: absolute; top: 10px; right: 10px; background: rgba(19, 26, 23, 0.85); color: #ffd279; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.subject-info-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.subject-title { font-size: 26px; font-weight: 750; color: var(--text); line-height: 1.3; margin: 0 0 6px; letter-spacing: -0.5px; }
.subject-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

/* 网盘指标与生态渠道 */
.disk-meta-box, .about-page .lead-quote { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.disk-meta-item { font-size: 13px; color: var(--text); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.disk-meta-label { color: var(--text-muted); font-weight: 500; }
.highlight-val { color: var(--primary); font-weight: 700; }
.badge-quark { background: #f3e8ff; color: #6b21a8; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; }
[data-theme="dark"] .badge-quark { background: rgba(170, 102, 226, 0.2); color: #c084fc; }
.badge-baidu { background: #dbeafe; color: #1e40af; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; }
[data-theme="dark"] .badge-baidu { background: rgba(97, 122, 255, 0.2); color: #93c5fd; }
.disk-meta-tip { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* CTA 转化按钮与引导 */
.subject-action-area { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.btn-search-action { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 22px; background: var(--primary); color: #fff !important; text-decoration: none !important; font-size: 15px; font-weight: 650; border-radius: 8px; transition: background .18s, transform .12s; box-sizing: border-box; }
.btn-search-action:hover { background: var(--primary-hover); }
.btn-search-action:active { transform: scale(.98); }

.btn-share-poster { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; padding: 10px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .12s; box-sizing: border-box; }
.btn-share-poster:hover { background: var(--accent-soft); border-color: var(--primary); color: var(--primary); }
.btn-share-poster:active { transform: scale(.98); }
.btn-subtext { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   Subject Share Poster Modal (分享海报弹窗规范)
   ============================================================ */
.poster-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.poster-modal-card { position: relative; max-width: 400px; width: 100%; max-height: 92vh; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; overflow: hidden; animation: posterModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes posterModalPop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.poster-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.poster-modal-title { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.poster-modal-close { background: transparent; border: none; font-size: 24px; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 2px 8px; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.poster-modal-close:hover { color: var(--text); background: var(--accent-soft); }
.poster-modal-body { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: center; }
.poster-loading-box { padding: 48px 0; text-align: center; color: var(--text-muted); font-size: 14px; }
.poster-spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: posterSpin 0.8s linear infinite; }
@keyframes posterSpin { to { transform: rotate(360deg); } }
.poster-rendered-img { width: 100%; max-width: 320px; height: auto; border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); display: block; margin: 0 auto; user-select: auto; -webkit-user-select: auto; }
.poster-modal-footer { padding: 12px 18px 16px; border-top: 1px solid var(--border); background: var(--surface); text-align: center; }
.poster-hint { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.5; }
.poster-hint strong { color: var(--primary); }
.poster-download-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 40px; padding: 8px 16px; background: var(--primary); color: #ffffff !important; text-decoration: none !important; border-radius: 6px; font-size: 13.5px; font-weight: 650; transition: background 0.18s; box-sizing: border-box; }
.poster-download-btn:hover { background: var(--primary-hover); }

/* 属性表格 */
.facts-grid { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 0; padding: 0; }
.fact-row { display: flex; font-size: 13px; line-height: 1.6; }
.fact-row dt { width: 72px; flex-shrink: 0; color: var(--text-muted); font-weight: 500; }
.fact-row dd { flex: 1; margin: 0; color: var(--text); overflow-wrap: anywhere; }
.fact-row dd a { color: var(--primary); text-decoration: none; }
.fact-row dd a:hover { text-decoration: underline; }

/* 剧情简介 */
.subject-intro-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.intro-heading { font-size: 16px; font-weight: 650; margin: 0 0 10px; color: var(--text); }
.intro-body p { font-size: 14px; line-height: 1.8; color: var(--text); margin: 0; text-align: justify; }

/* 底部推荐内链 */
.related-recommendations { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; box-sizing: border-box; }
.rec-heading { font-size: 15px; font-weight: 650; margin: 0 0 14px; color: var(--text); }
.rec-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-tag-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; text-decoration: none !important; color: var(--text); font-size: 13px; transition: background .18s, border-color .18s, color .18s; }
.rec-tag-item:hover { background: var(--accent-soft); border-color: var(--primary); color: var(--primary) !important; }
.rec-tag-rank { font-weight: 700; color: var(--text-muted); font-size: 12px; }
.rec-tag-item:hover .rec-tag-rank { color: var(--primary); }
.waiting-card { border-radius: 10px; box-shadow: var(--shadow); }
.progress-ring__fill { stroke: var(--primary); filter: none; }
.progress-ring__pct { background: none; -webkit-text-fill-color: var(--text); }
.step-item.active .step-dot { background: var(--primary); box-shadow: 0 0 0 4px var(--accent-soft); animation: none; }

/* ============================================================
   About Page (服务说明页专用规范)
   ============================================================ */
.about-page .about-card { padding: 32px; }
.about-page .about-title { font-size: 28px; font-weight: 750; margin: 0 0 16px 0; color: var(--text); line-height: 1.35; letter-spacing: -0.5px; }
.about-page .lead-quote { font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--text); margin: 18px 0 24px; border-left: 3px solid var(--primary); }
[data-theme="dark"] .about-page .lead-quote { border-left-color: var(--primary); }
.about-page .section-h2 { font-size: 17px; font-weight: 700; color: var(--text); margin: 32px 0 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.about-page .about-table-wrap { overflow-x: auto; margin: 16px 0 24px; -webkit-overflow-scrolling: touch; }
.about-page .about-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.about-page .about-table th, .about-page .about-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.about-page .about-table th { background: var(--surface); font-weight: 600; color: var(--text); }
.about-page .step-list, .about-page ul { padding-left: 20px; margin: 12px 0; font-size: 14px; line-height: 1.8; color: var(--text); }
.about-page .step-list li, .about-page ul li { margin-bottom: 8px; }
.about-page .badge-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.about-page .tag-yes { background: #dcfce7; color: #166534; }
.about-page .tag-no { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .about-page .tag-yes { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
[data-theme="dark"] .about-page .tag-no { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.about-page .about-footer-nav { text-align: center; margin-top: 36px; }
.about-page .btn-home-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 32px; background: var(--primary); color: #ffffff !important; border-radius: 7px; font-size: 15px; font-weight: 650; text-decoration: none !important; box-shadow: var(--shadow); transition: background .18s, transform .12s; }
.about-page .btn-home-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.about-page .btn-home-cta:active { transform: scale(.98); }
.about-page .btn-home-cta .search-symbol { width: 16px; height: 16px; background: #ffffff; flex-shrink: 0; }

@keyframes panelEnter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
    .latest-poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .search-page .container, .topbar-inner { padding-left: 28px; padding-right: 28px; }
    .search-hero { margin-left: -28px; margin-right: -28px; }
}
@media (max-width: 760px) {
    .subject-container { padding: 12px 16px 48px; }
    .subject-page .subject-nav { margin-bottom: 14px; }
    .subject-breadcrumb { margin-bottom: 14px; }
    .subject-breadcrumb .breadcrumb-list { flex-wrap: nowrap; }
    .subject-breadcrumb .breadcrumb-item.active { flex: 1; min-width: 0; }
    .subject-card { padding: 20px 16px; }
    .subject-layout { flex-direction: column; align-items: stretch; gap: 22px; }
    .subject-poster-col { flex: none; width: min(180px, 62vw); max-width: none; margin: 0 auto; }
    .subject-info-col { width: 100%; }
    .subject-header-meta { text-align: center; }
    .subject-title { font-size: 23px; }
    .subject-subtitle { margin-bottom: 14px; }
    .disk-meta-box { padding: 14px; }
    .disk-meta-item { align-items: flex-start; }
    .btn-search-action { min-height: 52px; }
    .subject-intro-section { margin-top: 20px; }
    .related-recommendations { padding: 20px 16px; }
}
@media (max-width: 600px) {
    .search-page .container { padding: 0 18px; }
    .topbar-inner { height: 62px; padding: 0 18px; gap: 14px; }
    .wordmark { font-size: 23px; gap: 7px; }
    .brand-cloud { width: 29px; height: 29px; }
    .primary-nav { margin-left: auto; gap: 0; }
    .primary-nav a { font-size: 13px; }
    .primary-nav .nav-current { display: none; }
    .search-page .theme-toggle { margin-left: 0; width: 44px; background: transparent; }
    .search-hero { margin: 0 -18px; padding: 28px 18px 20px; text-align: left; }
    .search-hero h1 { font-size: clamp(28px, 7.3vw, 32px); letter-spacing: -.9px; line-height: 1.35; }
    .hero-description { margin-top: 10px; font-size: 14px; letter-spacing: 0; line-height: 1.7; }
    .search-page .search-form { margin-top: 18px; gap: 8px; }
    .search-page .search-box { padding: 0 10px; gap: 8px; }
    .search-page .search-input { padding: 13px 0; font-size: 16px; }
    .search-page .search-input::placeholder { font-size: 13px; }
    .search-box .search-symbol { width: 18px; height: 18px; }
    .search-shortcut { display: none; }
    .search-page .search-btn { min-width: 66px; min-height: 50px; padding: 0 15px; font-size: 15px; }
    .search-support { font-size: 12px; margin-top: 10px; }
    .has-query .search-hero { padding-top: 24px; padding-bottom: 22px; }
    .has-query .search-hero h1 { font-size: 25px; }
    .has-query .hero-description { font-size: 13px; }
    .search-page .rankings-wrapper { margin-top: 0; }
    .search-page .rankings-ctrl-bar { margin-bottom: 16px; }
    .search-page .rankings-segmented-nav { width: 100%; gap: 12px; }
    .search-page .seg-btn { flex: 1; min-width: 0; min-height: 48px; padding: 0 3px; font-size: 14px; }
    .latest-poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
    .poster-thumb-box { aspect-ratio: 2 / 3; }
    .poster-mobile-extra { display: none; }
    .posters-expanded .poster-mobile-extra { display: flex; }
    .poster-card-info { padding-top: 7px; }
    .poster-card-title { font-size: 13px; line-height: 1.45; }
    .poster-badge-score { font-size: 12px; bottom: 5px; left: 5px; }
    .poster-badge-tag { font-size: 10px; top: 5px; right: 5px; }
    .poster-open { display: none; }
    .search-page .rank-card-list { grid-template-columns: minmax(0, 1fr); }
    .search-page .rank-card-item { gap: 9px; min-height: 70px; }
    .search-page .rank-title-link { font-size: 14px; }
    .search-page .rank-card-title { font-size: 16px; }
    .search-page .rank-tag { font-size: 11px; }
    .search-page .rank-num { width: 24px; }
    .latest-more-wrap { margin: 26px 0; }
    .search-page .site-footer { margin-top: 28px; padding-bottom: max(24px, env(safe-area-inset-bottom)); font-size: 11px; }
    .search-page .tabs { gap: 16px; }
    .search-page .tab-btn { font-size: 14px; }
    .search-page .result-title { font-size: 15px; }
    .search-page .result-link { padding: 18px 30px 18px 0; }
    .search-page .result-link::after { right: 3px; }
    .subject-page .subject-nav, .about-page .about-nav { padding-right: 42px; }
    .subject-page .brand-logo, .about-page .brand-logo { gap: 5px; }
    .subject-page .gradient-text, .about-page .gradient-text { font-size: 18px; }
    .subject-page .brand-cloud, .about-page .brand-cloud { width: 24px; height: 24px; }
    .subject-page .theme-toggle, .about-page .theme-toggle { right: 10px; top: 24px; }
    .subject-page .subject-title, .subject-page .subject-subtitle { overflow-wrap: anywhere; }
    .subject-page .btn-search-action { padding: 12px; font-size: 14px; }
    .subject-page .disk-meta-item { flex-wrap: wrap; }
    .subject-page .facts-grid dd, .about-page .about-card { overflow-wrap: anywhere; }
    .about-page .about-card { padding: 22px 18px; }
    .about-page .about-title { font-size: 24px; }
    .about-page .about-table-wrap { overflow-x: auto; }
    .waiting-card { padding: 28px 20px; }
}
@media (hover: none) { .poster-card:hover .poster-thumb-img { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (min-width: 601px) { .more-mobile-only { display: none; } }
