.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;
    }
