@charset "UTF-8";
/* ============================================================
   列表页 (lists.html) 独立样式 —— 明亮活力风
   说明：lists 这套老结构的基础布局样式在 common_home.css 中缺失，
   本文件单独补全，不影响其它页面。
   ============================================================ */

:root {
    --primary-color: #FF5252;
    --dark-color: #2C3E50;
    --gray-color: #95A5A6;
    --light-color: #F7F9FC;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.p-index {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.clearfix::after { content: ''; display: block; clear: both; }
.fl { float: left; }
.fr { float: right; }
.hl { color: var(--primary-color); font-weight: 600; }

/* ---------- 筛选区 ---------- */
.cate-top-wr {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 15px;
}

.cate-selector {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px 20px;
}

.cate-col {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cate-col:last-child { border-bottom: none; }

.cate-title {
    flex: 0 0 64px;
    margin: 0;
    padding-top: 5px;
    color: var(--gray-color);
    font-size: 0.92rem;
    line-height: 1.6;
}

.cate-list {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cate-item {
    list-style: none;
}

.cate-item a {
    display: block;
    padding: 4px 12px;
    border-radius: 6px;
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cate-item a:hover {
    background: rgba(255, 82, 82, 0.08);
    color: var(--primary-color);
}

.cate-item.active a {
    background: var(--primary-color);
    color: #fff;
}

/* ---------- 列表容器 ---------- */
.cate-container {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 15px;
}

.cate-container__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

.cate-container__title .btn--hot {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.cate-container__title .fr {
    float: none;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ---------- 漫画网格 ---------- */
.cate-comic-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.common-comic-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.common-comic-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.common-comic-item .cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.common-comic-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 封面底部简介，hover 浮现 */
.comic-feature {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 8px;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.4;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    opacity: 0;
    transition: opacity 0.25s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.common-comic-item:hover .comic-feature { opacity: 1; }

.cover__shadow { display: none; }

.comic__title {
    margin: 10px 12px 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

.comic__title a {
    color: var(--dark-color);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: color 0.2s;
}

.common-comic-item:hover .comic__title a { color: var(--primary-color); }

.comic-update,
.comic-count {
    margin: 0 12px 4px;
    font-size: 0.8rem;
    color: var(--gray-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-count { margin-bottom: 12px; }

.comic-update a { color: var(--primary-color); text-decoration: none; }

/* ---------- 分页 ---------- */
#Pagination {
    margin-top: 30px;
    text-align: center;
}

#Pagination a,
#Pagination span {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    margin: 0 3px 6px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

#Pagination a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

#Pagination .current,
#Pagination span.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .cate-comic-list { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .cate-comic-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .cate-title { flex-basis: 52px; font-size: 0.85rem; }
}

@media (max-width: 576px) {
    .cate-comic-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ===== SEO H1 ===== */
.cate-container__title h1.btn--hot {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
}

/* ===== SEO 卡片标题 H2 ===== */
.common-comic-item h2.comic__title {
    font-size: 14px;
    font-weight: 500;
    margin: 6px 0 4px;
    line-height: 1.4;
}
