/* 首页目录模块沿用原型的五本推荐 + 右侧紧凑榜单，更新、新作为六列封面。 */
.home-discovery { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 35px; align-items: start; }
.picks-section, .home-ranking-aside, .home-ranking-panel { min-width: 0; }
.home-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 23px; }
.home-section-heading > div { min-width: 0; }
.home-section-heading h2 { margin: 0; font-size: 21px; font-weight: 750; line-height: 1.5; text-wrap: balance; }
.home-section-heading p { margin: 7px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.home-section-heading .text-button { flex-shrink: 0; }
.home-shuffle { display: inline-flex; gap: 6px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 12px; }
.home-shuffle img { object-fit: contain; }
.home-comic-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 19px; }
.home-comic-grid .comic-title { font-size: 14px; }
.home-preview-grid { grid-template-columns: repeat(6, minmax(0, 180px)); justify-content: space-between; gap: 26px 20px; }
.home-preview-section { margin-top: 44px; }
.home-section-empty { padding: 24px 20px; background: var(--surface); border-radius: 8px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.home-section-empty a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary); }
.home-ranking-aside { border-left: 1px solid var(--line); padding-left: 26px; }
.home-ranking-aside .home-section-heading { margin-bottom: 10px; }
.home-ranking-aside .home-section-heading h2 { font-size: 19px; }
.home-ranking-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 4px; }
.home-ranking-tabs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.home-ranking-tabs a:hover, .home-ranking-tabs a[aria-selected="true"] { color: var(--primary); font-weight: 650; }
.home-rank-fallback-title { margin: 16px 0 4px; font-size: 14px; }
.home-ranking-aside.is-enhanced .home-rank-fallback-title { display: none; }
.home-ranking-list { list-style: none; padding: 0; margin: 0; }
.home-ranking-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 63px; }
.home-ranking-number { width: 24px; flex-shrink: 0; color: var(--muted); font-size: 18px; font-weight: 750; font-style: italic; }
.home-ranking-number.podium { color: oklch(.50 .11 55); }
.home-ranking-row:first-child .home-ranking-number { color: var(--primary); }
.home-rank-cover { position: relative; flex: 0 0 48px; width: 48px; height: 65px; border-radius: 4px; background: var(--lavender) url("../images/logo.svg") center / 24px no-repeat; }
.home-rank-cover img { width: 48px; height: 65px; object-fit: cover; border-radius: 4px; }
.home-rank-cover .cover-feedback, .home-rank-cover .cover-noscript { padding: 0; border-radius: 4px; font-size: 10px; }
.home-rank-cover .cover-retry { padding: 0; min-width: 44px; font-size: 10px; }
.home-ranking-copy { min-width: 0; flex: 1; }
.home-ranking-copy h3 { margin: 0; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-ranking-copy a { display: block; min-height: 28px; line-height: 28px; overflow: hidden; text-overflow: ellipsis; }
.home-ranking-copy a:hover { color: var(--primary); }
.home-ranking-copy p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.home-ranking-status { margin-left: auto; flex-shrink: 0; font-size: 11px; color: oklch(.44 .065 165); }
.home-rank-more { margin-top: 4px; }
@media (min-width: 761px) and (max-width: 1100px) {
    .home-discovery { grid-template-columns: minmax(0, 1fr) 245px; gap: 22px; }
    .home-ranking-aside { padding-left: 18px; }
    .home-comic-grid { grid-template-columns: repeat(3, minmax(0, 150px)); gap: 22px 14px; }
    .home-preview-grid { grid-template-columns: repeat(3, minmax(0, 180px)); justify-content: space-around; }
}
@media (max-width: 760px) {
    /* 标题和“全部分类”放在首行，题材独占下一行换行，不挤成窄列或横向滚动。 */
    .genre-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .genre-label { grid-column: 1; grid-row: 1; }
    .genre-more { grid-column: 2; grid-row: 1; }
    .genre-links { grid-column: 1 / -1; grid-row: 2; }
    .home-discovery { display: block; }
    .home-comic-grid, .home-preview-grid { grid-template-columns: repeat(2, minmax(0, 160px)); justify-content: space-evenly; gap: 26px 16px; }
    .home-section-heading { gap: 10px; }
    .home-section-heading h2 { font-size: 19px; }
    .home-section-heading p { font-size: 11px; }
    .home-section-heading .text-button { font-size: 11px; }
    .home-ranking-aside { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; margin-top: 28px; }
    .home-preview-section { margin-top: 32px; }
}
