/* topic_index.css — 專題列表頁 */

.topic-main {
    padding: 24px 0 60px;
}

.topic-wrap {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== 頁頭 ===== */
.topic-page-hd {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.topic-page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== 卡片 Grid ===== */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

/* ===== 卡片 ===== */
.topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.topic-card-link {
    display: block;
    text-decoration: none;
}

/* 封面 */
.topic-thumb {
    position: relative;
    overflow: hidden;
}

.topic-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.topic-card:hover .topic-thumb img {
    transform: scale(1.04);
}

.topic-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 8px 10px;
}

.topic-vod-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,.9);
    font-weight: 500;
}

.topic-hot-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    background: #f5533d;
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
}

/* 信息 */
.topic-info {
    padding: 12px 14px;
}

.topic-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}

.topic-card:hover .topic-name {
    color: var(--accent);
}

.topic-blurb {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== RWD ===== */
@media (max-width: 1024px) {
    .topic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .topic-main {
        padding-bottom: 80px;
    }
}

@media (max-width: 380px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
}
