/* ==============================
       MacCMS10 专题页样式
       容器宽度：1200px（与主页一致）
       PC：3列 | 移动端：1列
   ============================== */

.topic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* —————— 专题首页标题 —————— */
.topic-index-header {
    text-align: center;
    margin: 2rem 0 2.5rem;
    padding: 1.5rem 0;
}

.topic-index-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(to right, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* —————— 专题卡片网格 —————— */
.topic-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* 移动端：1列 */
@media (max-width: 767px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
}

/* 平板及以上：3列（适配 1200px 宽度） */
@media (min-width: 768px) {
    .topic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* —————— 卡片样式 —————— */
.topic-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.topic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    background: #2d3748;
}

.topic-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.topic-content {
    padding: 1.25rem 1rem;
}

.topic-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #f8fafc;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.topic-count {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    margin: 0.5rem 0;
}

.topic-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #334155;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.topic-link:hover {
    background: #475569;
    color: #f8fafc;
}

/* —————— 专题详情页 —————— */
.topic-detail-header {
    text-align: center;
    margin: 2.5rem 0 2rem;
}

.topic-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.topic-detail-info {
    color: #94a3b8;
    font-size: 0.95rem;
}

.topic-vod-list {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 767px) {
    .topic-vod-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .topic-vod-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.topic-vod-item {
    text-align: center;
}

.topic-vod-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.topic-vod-name {
    font-size: 0.95rem;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.topic-vod-item a {
    color: inherit;
    text-decoration: none;
}

/* —————— 分页样式（与你分类页一致） —————— */
.mac_pages {
    text-align: center;
    margin: 2.5rem 0;
}

.mac_pages a,
.mac_pages span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #1e293b;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.mac_pages a:hover,
.mac_pages .active {
    background: #334155;
    color: #f8fafc;
}

/* 超小屏优化 */
@media (max-width: 480px) {
    .topic-vod-list {
        grid-template-columns: 1fr;
    }
    .topic-index-title {
        font-size: 1.75rem;
    }
    .topic-detail-title {
        font-size: 1.5rem;
    }
}