.topics-container {
        padding: 30px 0;
    }

    .topics-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    .topic-card {
        flex: 0 0 calc(33.333% - 13.333px);
        background: var(--ymx-bg-card);
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        height: fit-content;
    }

    .topic-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    /* 专题图片区域 */
    .topic-image-link {
        display: block;
        text-decoration: none;
        position: relative;
    }

    .topic-image-wrapper {
        width: 100%;
        aspect-ratio: 387 / 215;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    .topic-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .topic-card:hover .topic-image {
        transform: scale(1.05);
    }

    .topic-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        padding: 20px;
    }

    .topic-info {
        color: #fff;
    }

    .topic-count {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #fff;
        margin-bottom: 8px;
    }

    .topic-count .icon {
        width: 12px;
        height: 12px;
        margin-right: 4px;
        fill: #fff;
    }

    /* 当没有文章时，按钮添加上边距 */
    .topic-actions.no-posts {
        margin-top: 20px;
    }

    .topic-name {
        font-size: 18px;
        font-weight: bold;
        color: #fff;
    }

    .topic-description {
        font-size: 14px;
        margin-top: 8px;
        opacity: 0.9;
        line-height: 1.4;
    }

    /* 专题文章列表 */
    .topic-posts {
        padding: 20px;
    }

    .posts-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .post-item {
        margin-bottom: 20px;
    }

    .post-item.last-item {
        margin-bottom: 0;
    }

    .post-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: inherit;
        transition: color 0.3s ease;
    }

    .post-link:hover {
        color: var(--ymx-accent);
    }

    .post-image-wrapper {
        flex-shrink: 0;
        width: 80px;
        height: 55px;
        margin-right: 12px;
        border-radius: 4px;
        overflow: hidden;
    }

    .post-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-title {
        font-size: 14px;
        line-height: 1.4;
        margin: 0;
        flex: 1;
    }

    /* 进入专题按钮 */
    .topic-actions {
        padding: 0 20px 20px 20px;
    }

    .enter-topic-btn {
        display: inline-block;
        width: 100%;
        height: 36px;
        background: #f3f3f3;
        color: var(--ymx-text-primary);
        text-decoration: none;
        text-align: center;
        line-height: 36px;
        border-radius: 4px;
        transition: background-color 0.3s ease, color 0.3s ease;
        font-size: 14px;
        font-weight: 500;
    }

    .enter-topic-btn:hover {
        background: var(--ymx-accent);
        color: #fff;
    }

    /* 无专题内容 */
    .no-topics {
        text-align: center;
        padding: 60px 20px;
        color: var(--ymx-text-muted);
        width: 100%;
    }

    /* 响应式设计 */
    @media (max-width: 1200px) {
        .topics-grid {
            justify-content: center;
        }

        .topic-card {
            flex: 0 0 calc(33.333% - 13.333px);
        }
    }

    @media (max-width: 768px) {
        .topics-container {
            padding: 20px 0;
        }

        .topics-grid {
            gap: 20px;
        }

        .topic-card {
            flex: 0 0 100%;
        }

        .topic-image-wrapper {
            width: 100%;
            aspect-ratio: 387 / 215;
        }

        .topic-posts {
            padding: 15px;
        }

        .topic-actions {
            padding: 0 15px 15px 15px;
        }
    }

    /* 夜间模式 */
    body.ymx-dark-mode .topic-card {
        background: var(--ymx-bg-card);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    body.ymx-dark-mode .topic-card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    body.ymx-dark-mode .topic-overlay {
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    }

    body.ymx-dark-mode .post-link:hover {
        color: #4dabf7;
    }

    body.ymx-dark-mode .enter-topic-btn {
        background: var(--ymx-bg-card-hover);
        color: #ddd;
    }

    body.ymx-dark-mode .enter-topic-btn:hover {
        background: var(--ymx-accent);
        color: #fff;
    }

    body.ymx-dark-mode .no-topics {
        color: #bbb;
    }

.topics-pagination {
        margin-top: 40px;
        text-align: center;
    }

    .topics-pagination .page-numbers {
        display: inline-block;
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-weight: 500;
        margin: 0 2px;
        text-decoration: none;
        color: var(--ymx-text-secondary);
        background: var(--ymx-bg-card);
        border: 1px solid var(--ymx-border-input);
        border-radius: 6px;
        transition: all 0.3s ease;
        box-sizing: content-box;
    }

    .topics-pagination .page-numbers:hover,
    .topics-pagination .page-numbers.current {
        color: var(--ymx-accent);
        background: var(--ymx-bg-elevated);
        border-color: var(--ymx-accent);
    }

    .topics-pagination .page-numbers.prev,
    .topics-pagination .page-numbers.next {
        width: auto;
        padding: 0 12px;
    }

    /* 夜间模式分页样式 */
    body.ymx-dark-mode .topics-pagination .page-numbers {
        color: #ccc;
    }

    body.ymx-dark-mode .topics-pagination .page-numbers:hover,
    body.ymx-dark-mode .topics-pagination .page-numbers.current {
        color: #4dabf7;
        border-color: #4dabf7;
    }

/* ========== 专题Header样式（专题列表页 taxonomy-topic.php）========== */

.topic-header {
    width: 100%;
    max-width: 820px;
    height: 460px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.topic-header-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.topic-header-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 20px;
}

.topic-header-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-count-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topic-count-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    color: #fff;
}

.topic-count-icon .icon,
.topic-count-icon svg {
    width: 12px;
    height: 12px;
    fill: #fff;
    color: #fff;
}

.topic-count {
    color: #fff;
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}

.topic-title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.topic-description {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.95;
}

.topic-articles {
    width: 100%;
    max-width: 820px;
}

.topic-articles .articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 0;
}

@media (max-width: 900px) {
    .topic-header {
        width: 100%;
        max-width: 820px;
        height: auto;
        aspect-ratio: 820 / 460;
    }

    .topic-articles {
        width: 100%;
        max-width: 820px;
    }
}

@media (max-width: 768px) {
    .topic-header {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .topic-header-content {
        padding: 15px;
    }

    .topic-title {
        font-size: 20px;
    }

    .topic-description {
        font-size: 13px;
    }

    .topic-articles {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .topic-articles .articles-container {
        margin-left: 0;
    }

    .topic-articles .ymx-article-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 12px;
        gap: 12px;
        border-radius: 8px;
    }

    .topic-articles.ymx-topic-articles--thumb-left .ymx-article-card {
        flex-direction: row;
    }

    .topic-articles:not(.ymx-topic-articles--thumb-left) .ymx-article-card {
        flex-direction: row-reverse;
    }

    .topic-articles .ymx-article-card:first-child {
        border-radius: 8px;
    }

    .topic-articles .article-thumbnail {
        width: 120px;
        height: 82px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .topic-articles .article-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: space-between;
        height: 82px;
    }

    .topic-articles .ymx-article-card.no-thumbnail .article-content {
        height: auto;
        min-height: 82px;
    }

    .topic-articles .article-title {
        display: flex;
        flex: 1;
        align-items: flex-start;
        margin-bottom: 0;
        font-size: 14px;
        line-height: 1.3;
    }

    .topic-articles .article-excerpt {
        display: none;
        margin-bottom: 8px;
    }

    .topic-articles .article-excerpt:not(.hide-mobile) {
        display: block;
    }

    .topic-articles .article-excerpt p {
        margin: 0;
        color: var(--ymx-text-secondary);
        font-size: 12px;
        line-height: 1.6;
    }

    .topic-articles .article-meta {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-top: auto;
        font-size: 10px;
    }

    .topic-articles .meta-left {
        gap: 6px;
    }

    .topic-articles .meta-right {
        align-self: auto;
    }

    .topic-articles .meta-item.author-info,
    .topic-articles .meta-item.comments-count {
        display: none;
    }

    .topic-articles .meta-item.post-date.hide-mobile,
    .topic-articles .article-excerpt.hide-mobile,
    .topic-articles .meta-item.category-info.hide-mobile {
        display: none;
    }

    .topic-articles .author-avatar {
        width: 16px;
        height: 16px;
    }

    .topic-articles .like-btn {
        font-size: 10px;
    }
}
