@charset "utf-8";
/* ===== 内容列表页（内容精选等）：与首页统一的亮色主题 ===== */

/* Hero 区：列表页略矮 */
.list-hero { min-height: 260px; }
.list-hero .hero-title { font-size: 40px; }
.list-hero .hero-desc { margin-bottom: 24px; }
.list-hero .hero-search { max-width: 460px; }
.list-hero .hero-tags { margin-top: 4px; }
.list-hero .hero-tags a.tag,
.list-hero .hero-tags span.tag { text-decoration: none; }
.list-hero .hero-tags .tag.cur {
    background: #fe2c55;
    border-color: #fe2c55;
    color: #fff;
}

/* 主体 */
.list-body { background: #f7f7f7; }
.list-body .container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 30px;
}
.list-main { flex: 1; min-width: 0; }
.list-side { width: 300px; flex-shrink: 0; }

/* 文章卡片流 */
.article-list {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.article-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: background .25s;
}
.article-card:last-child { border-bottom: none; }
.article-card:hover { background: #fff6f7; }
.article-thumb {
    width: 180px;
    height: 112px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.article-card:hover .article-thumb img { transform: scale(1.06); }
.article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .25s;
}
.article-card:hover .article-title { color: #fe2c55; }
.article-brief {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #aaa;
}
.article-meta i { margin-right: 3px; }
.article-tag {
    padding: 2px 8px;
    background: #fff0f3;
    color: #fe2c55;
    border-radius: 4px;
    font-size: 11px;
}
.article-arrow { margin-left: auto; color: #ddd; font-size: 13px; transition: all .25s; }
.article-card:hover .article-arrow { color: #fe2c55; transform: translateX(2px); }

/* 空态 */
.empty-box {
    padding: 60px 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}
.empty-box i { font-size: 26px; display: block; margin-bottom: 12px; color: #ddd; }

/* 分页 */
.pagination-box { padding: 20px 0 4px; text-align: center; }
.pagination { list-style: none; padding: 0; margin: 0; }
.pagination li { display: inline-block; margin: 0 3px; vertical-align: middle; }
.pagination li a,
.pagination li span {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all .25s;
}
.pagination li a:hover { color: #fe2c55; border-color: rgba(254, 44, 85, .4); }
.pagination li.active span { background: #fe2c55; border-color: #fe2c55; color: #fff; }
.pagination li.disabled span { color: #ccc; background: #fafafa; }

/* 侧栏：排行序号 */
.list-side .info-card { margin-bottom: 14px; }
.side-rank-list { padding: 6px 0; }
.side-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #f9f9f9;
    transition: background .2s;
}
.side-rank-item:last-child { border-bottom: none; }
.side-rank-item:hover { background: #fff5f6; }
.side-rank-no {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ccc;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.side-rank-no.r1 { background: #fe2c55; }
.side-rank-no.r2 { background: #ff6b81; }
.side-rank-no.r3 { background: #ffa502; }
.side-rank-text { min-width: 0; }
.side-rank-title {
    display: block;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    transition: color .2s;
}
.side-rank-title:hover { color: #fe2c55; }
.side-rank-meta { font-size: 11px; color: #bbb; margin-top: 3px; }

/* 侧栏：友情链接 */
.link-box { padding: 10px 14px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.link-box a {
    padding: 4px 10px;
    background: #f7f7f7;
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    text-decoration: none;
    transition: all .25s;
}
.link-box a:hover { background: #fe2c55; color: #fff; }

/* 响应式 */
@media (max-width: 900px) {
    .list-body .container { flex-direction: column; }
    .list-side { width: 100%; }
}
@media (max-width: 600px) {
    .list-hero { min-height: 220px; }
    .list-hero .hero-title { font-size: 28px; }
    .list-hero .hero-desc { font-size: 14px; }
    .article-card { gap: 12px; padding: 12px; }
    .article-thumb { width: 110px; height: 76px; }
    .article-title { font-size: 15px; -webkit-line-clamp: 2; }
    .article-brief { -webkit-line-clamp: 2; font-size: 12px; }
    .article-meta { gap: 10px; font-size: 11px; }
    .pagination li { margin: 0 2px; }
}

/* ===== 通用卡片网格（文档 / 短视频） ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* --- 文档卡片 --- */
.doc-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all .3s;
}
.doc-card:hover {
    border-color: rgba(254, 44, 85, .3);
    box-shadow: 0 8px 24px rgba(254, 44, 85, .1);
    transform: translateY(-3px);
}
.doc-cover {
    position: relative;
    height: 132px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}
.doc-cover img { width: 100%; height: 100%; object-fit: cover; }
.doc-cover .doc-badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 11px;
}
.doc-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.doc-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .25s;
}
.doc-card:hover .doc-body h3 { color: #fe2c55; }
.doc-body .doc-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    margin: 0 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.doc-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
}
.doc-meta i { margin-right: 3px; }
.doc-price {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: #e8f7ee;
    color: #2f9e44;
}
.doc-price.pay { background: #fff0f3; color: #fe2c55; }
.doc-arrow { margin-left: auto; color: #ddd; transition: all .25s; }
.doc-card:hover .doc-arrow { color: #fe2c55; transform: translateX(2px); }

/* --- 短视频卡片 --- */
.video-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all .3s;
}
.video-card:hover {
    border-color: rgba(254, 44, 85, .3);
    box-shadow: 0 8px 24px rgba(254, 44, 85, .1);
    transform: translateY(-3px);
}
.video-cover {
    position: relative;
    padding-bottom: 56.25%;
    background: #f3f3f3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 34px;
}
.video-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.video-card:hover .video-cover img { transform: scale(1.06); }
.video-cover .video-duration {
    position: absolute;
    right: 8px; bottom: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 11px;
}
.video-cover .video-play {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    font-size: 30px;
    opacity: 0;
    transition: opacity .3s;
}
.video-card:hover .video-cover .video-play { opacity: 1; }
.video-body { padding: 12px 14px 14px; }
.video-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .25s;
}
.video-card:hover .video-body h3 { color: #fe2c55; }
.video-hot {
    font-size: 12px;
    color: #bbb;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 0 8px;
}
.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #aaa;
}
.video-meta i { margin-right: 3px; }
.video-meta .author { color: #888; }
.video-meta .hot-num { color: #fe2c55; }

@media (max-width: 1000px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; gap: 12px; }
}
