/* 首页手机快捷入口与紧凑筛选；桌面沿用原筛选排列。 */
.home-mobile-tools, .home-filter-controls, .home-filters .home-search-submit { display: none; }
@media (max-width: 700px) {
  .home-hero .hero-sub { margin-bottom: 16px; }
  .home-mobile-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
  .home-mobile-tool { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; }
  .home-mobile-tool:hover { border-color: var(--accent); text-decoration: none; }
  .home-mobile-tool:focus-visible, .home-filter-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .home-mobile-tool .classify-entry-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 21px; }
  .home-mobile-tool-copy { font-size: 14px; font-weight: 600; white-space: nowrap; }
  .home-mobile-tool-copy small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }
  .home-mobile-tool.is-vip-locked { color: var(--muted); cursor: not-allowed; }
  .home-filters > .filter-row:first-child { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
  .home-filters input[type=search] { flex: 1 1 0; min-width: 0; width: 0; min-height: 44px; }
  .home-filters .home-search-submit { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 10px 14px; }
  .home-filter-controls { display: flex; align-items: center; gap: 10px; }
  .home-filter-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; min-width: 0; min-height: 36px; padding: 2px 0; background: none; border: 0; color: var(--muted); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
  .home-filter-toggle svg { flex: none; transition: transform 150ms ease; }
  .home-filters.is-filter-open .home-filter-toggle svg { transform: rotate(180deg); }
  .home-filter-controls .btn-link { font-size: 12px; }
  .home-filters:not(.is-filter-open) .home-filter-fields { display: none; }
  .home-filters.is-filter-open .home-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
  .home-filter-fields select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 8px; }
  .home-filter-fields > .btn { grid-column: 1 / -1; min-height: 44px; }
  .home-filter-fields > .btn-link { display: none; }
  .home-mobile-tools ~ .classify-entry-wrap { display: none; }
}
@media (max-width: 360px) {
  .home-mobile-tools { gap: 9px; }
  .home-mobile-tool { gap: 7px; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { .home-filter-toggle svg { transition: none; } }

/* 按已选预览实现首页；保留原筛选、权限与入口 URL。 */
.home-page :is(.pika-bg,.pika2-bg,.side-quote) { display:none; }
.home-page .home-hero { padding:20px 0 8px; }
.home-page .home-hero h1 { white-space:nowrap; font-size:clamp(17px,5.7vw,34px); font-weight:650; letter-spacing:-.035em; line-height:1.4; margin:0 0 14px; }
.home-page .home-hero .hero-sub { font-size:14px; line-height:1.8; margin-bottom:24px; }
.home-page .cie-badge { border:0; font-size:12px; padding:7px 11px; margin-bottom:18px; }
.home-page .classify-entry-icon { background:var(--accent-soft); color:var(--accent); box-shadow:none; filter:none; width:38px; height:38px; border-radius:10px; }
.home-page .classify-entry-icon .home-icon { width:21px; height:21px; }
.home-page .classify-entry-btn:hover .classify-entry-icon { transform:none; box-shadow:none; }
.home-page :is(.classify-entry-btn,.home-mobile-tool) { background:var(--card); border:1.5px solid var(--highlight-border); box-shadow:none; }
.home-page :is(.classify-entry-btn,.home-mobile-tool):hover { border-color:var(--highlight-ink); box-shadow:0 4px 16px #87672f0a; }
.home-page .is-vip-locked .classify-entry-icon { background:transparent; color:var(--muted); opacity:.6; }
.home-page .results .card { box-shadow:var(--shadow); }
.home-page .results .card:hover { transform:translateY(-1px); }
.home-page .results .card-pinned { border:1.5px solid var(--highlight-border); box-shadow:var(--shadow)!important; }
.home-page .pin-badge { display:inline-flex; align-items:center; gap:4px; margin:13px 0 0 16px; padding:0; background:none; color:var(--highlight-ink); border-radius:0; }
.home-page .pin-badge .home-icon { width:13px; height:13px; }
.home-page .card-title { letter-spacing:-.015em; }
.home-page { --meta-subject-bg:#edf4f9; --meta-subject-ink:#326f9d; --meta-year-bg:#f3eef8; --meta-year-ink:#765293; --meta-paper-bg:#eaf5f1; --meta-paper-ink:#36776d; --meta-session-bg:#fbf2e6; --meta-session-ink:#96652f; }
.home-page .card-meta .tag { font-size:11px; border-radius:5px; padding:2px 6px; background:var(--tag-bg,var(--accent-soft)); color:var(--tag-ink,var(--accent)); }
.home-page .card-meta .tag-subject { --tag-bg:var(--meta-subject-bg); --tag-ink:var(--meta-subject-ink); }
.home-page .card-meta .tag-year { --tag-bg:var(--meta-year-bg); --tag-ink:var(--meta-year-ink); }
.home-page .card-meta .tag-paper { --tag-bg:var(--meta-paper-bg); --tag-ink:var(--meta-paper-ink); }
.home-page .card-meta .tag-session { --tag-bg:var(--meta-session-bg); --tag-ink:var(--meta-session-ink); }
.home-page .card-notes { font-size:12px; }
.home-page .useful-links { background:var(--card); box-shadow:none; }
.home-page .useful-links li { border:0; border-bottom:1px solid var(--line); }
.home-page .useful-links li:last-child { border-bottom:0; }
.home-page .links-hint { border:0; border-top:1px solid var(--line); }
.home-page .easter-egg { background:var(--accent-soft); border-color:var(--line); color:var(--accent); box-shadow:none; padding:8px 12px; font-size:12px; }
.home-page .easter-egg .egg-pop { color:var(--accent); background:transparent; }
.home-page .egg-icon { display:flex; color:var(--accent); }
.home-page .egg-icon .home-icon { width:16px; height:16px; }
.home-page .egg-sub { color:var(--muted); font-size:11px; }
html[data-theme=dark] .home-page .cie-badge { background:none; color:var(--accent); }
html[data-theme=dark] .home-page :is(.classify-entry-btn,.home-mobile-tool) { background:var(--card); color:var(--ink); border-color:var(--line); box-shadow:none!important; }
html[data-theme=dark] .home-page .classify-entry-icon { background:transparent; color:var(--accent); }
html[data-theme=dark] .home-page :is(.question-entry-copy,.question-entry-copy strong) { color:var(--ink); }
html[data-theme=dark] .home-page :is(.classify-entry-sub,.photo-search-scope) { color:var(--muted); }
html[data-theme=dark] .home-page .results .card { box-shadow:none; }
html[data-theme=dark] .home-page .results .card-pinned { border-color:var(--line); border-top:2px solid var(--highlight-border); box-shadow:none!important; }
html[data-theme=dark] .home-page .pin-badge { background:none; color:var(--highlight-ink); }
html[data-theme=dark] .home-page { --meta-subject-ink:#a6c6df; --meta-year-ink:#c4afd8; --meta-paper-ink:#9dc9bc; --meta-session-ink:#d5ba91; }
html[data-theme=dark] .home-page .card-meta .tag { padding-left:0; padding-right:0; background:none; color:var(--tag-ink,var(--muted)); }
html[data-theme=dark] .home-page .card-meta .tag + .tag::before { content:'·'; margin-right:6px; }
html[data-theme=dark] .home-page .home-filters { background:none; border-color:transparent; padding-left:0; padding-right:0; }
html[data-theme=dark] .home-page .home-filters :is(input,select) { background:var(--card); color:var(--ink); border-color:var(--line); }
html[data-theme=dark] .home-page .easter-egg { background:var(--bg); border-color:var(--line); color:var(--accent); }
@media(max-width:700px) {
  html[data-theme=dark] .home-page .home-hero { text-align:left; }
  html[data-theme=dark] .home-page .hero-sub { margin-left:0; }
  html[data-theme=dark] .home-page .cie-badge { padding-left:0; }
  .home-page .home-hero { padding-top:12px; }
  .home-page .home-hero .hero-sub { font-size:12px; margin-bottom:22px; max-width:340px; }
  .home-page .home-mobile-tools { gap:10px; }
  .home-page .home-mobile-tool { min-height:54px; padding:10px 8px; }
  .home-page .home-mobile-tool .classify-entry-icon { width:30px; height:30px; border-radius:9px; }
  .home-page .home-mobile-tool .home-icon { width:18px; height:18px; }
  .home-page .home-mobile-tool-copy { font-size:13px; }
  .home-page .home-mobile-tool-copy small { font-size:11px; }
  .home-page .home-filters { padding:14px 14px 7px; }
  .home-page .home-filters input[type=search] { background:var(--bg); font-size:14px; border-radius:10px; }
  .home-page .home-search-submit { border-radius:10px; }
  .home-page .home-filter-toggle, .home-page .home-filter-controls .btn-link { font-size:11px; }
  html[data-theme=dark] .home-page .home-mobile-tools { gap:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
  html[data-theme=dark] .home-page .home-mobile-tool { border:0; border-radius:0; min-height:57px; }
  html[data-theme=dark] .home-page .home-mobile-tool:first-child { border-right:1px solid var(--line); }
  html[data-theme=dark] .home-page .home-filters input[type=search] { background:var(--card); }
  html[data-theme=dark] .home-page .home-filters { padding-top:0; padding-bottom:0; }
  html[data-theme=dark] .home-page .home-filters > .filter-row:first-child { padding:5px 6px; border:1px solid var(--line); border-radius:var(--radius); background:var(--card); gap:6px; }
  html[data-theme=dark] .home-page #homeFilters input[type=search] { border:0; background:none; padding:10px 7px; min-height:40px; }
  html[data-theme=dark] .home-page .home-search-submit { min-height:40px; padding:10px 12px; }
}
@media(max-width:360px) { .home-page .home-mobile-tool { gap:7px; } }
