/* topic_detail.css — 專題詳細頁 */

/* ===== Hero 區域 ===== */
.td-hero {
    position: relative;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.td-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.td-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(.4);
    transform: scale(1.05);
}

.td-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    max-width: 1760px;
    margin: 0 auto;
    padding: 40px 16px;
}

/* 幻燈 */
.td-slides {
    flex-shrink: 0;
    width: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.td-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s;
}

.td-slide.is-active {
    opacity: 1;
}

.td-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 資訊 */
.td-info {
    flex: 1;
    min-width: 0;
}

.td-hot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    background: #f5533d;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.td-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.td-sub {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin-bottom: 12px;
}

.td-desc {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}

/* ===== 主內容 ===== */
.td-main {
    padding: 28px 0 60px;
}

.td-container {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 16px;
}

.td-count-bar {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.td-count-bar em {
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
}

/* ===== 影片 Grid ===== */
.td-vod-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

/* ===== RWD ===== */
@media (max-width: 1100px) {
    .td-vod-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .td-hero-inner {
        flex-direction: column;
        align-items: center;
        padding: 28px 16px;
        gap: 20px;
    }

    .td-slides {
        width: 100%;
        max-width: 480px;
    }

    .td-info {
        width: 100%;
        text-align: center;
    }

    .td-meta {
        justify-content: center;
    }

    .td-vod-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .td-title {
        font-size: 20px;
    }

    .td-vod-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 420px) {
    .td-vod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
