/* 專題列表樣式 */
.topic-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.topic-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    text-decoration: none;
}

.topic-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.topic-image {
    display: block;
    width: 100%;
    aspect-ratio: 10 / 3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
}

.topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.topic-card:hover .topic-image img {
    transform: scale(1.06);
}

.topic-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-333);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.topic-card:hover .topic-title {
    color: var(--primary-color);
}

.topic-desc {
    font-size: 14px;
    color: var(--color-666);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    height: 44.8px;
    margin: 0;
}

/* 移動端樣式 */
@media screen and (max-width: 768px) {
    .topic-list {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .topic-card {
        padding: 12px;
    }
}

/* 專題頂部橫幅樣式 */
.topicTopbar {
    position: relative;
    width: 100%;
    aspect-ratio: 10 / 3;
    overflow: hidden;
    margin-bottom: 20px;
}

.topicTopbar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.topicTopbar-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.topicTopbar-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topicTopbar-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: #fff;
}

.topicTopbar-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.topicTopbar-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0;
    max-width: 900px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* 移動端樣式 */
@media screen and (max-width: 1080px) {
    .topicTopbar {
        margin-bottom: 15px;
    }

    .topicTopbar-content {
        padding: 15px 12px;
    }

    .topicTopbar-title {
        font-size: 16px;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .topicTopbar-desc {
        font-size: 12px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }
}