/* 分类归档（模组列表）· 对齐全部游戏页金橙风 */
body.category .filter-warp {
    --ptg-a-bg: #f7f9fc;
    --ptg-a-card: #ffffff;
    --ptg-a-text: #1f2329;
    --ptg-a-sub: #6b7280;
    --ptg-a-muted: #9ca3af;
    --ptg-a-border: #ececf0;
    --ptg-a-accent: #ff5000;
    --ptg-a-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    background: transparent;
    padding: 8px 0 4px;
}

[data-bs-theme="dark"] body.category .filter-warp,
body.category[data-theme="dark"] .filter-warp {
    --ptg-a-bg: #121214;
    --ptg-a-card: #1a1a1c;
    --ptg-a-text: #f3f4f6;
    --ptg-a-sub: #b9a894;
    --ptg-a-muted: #8a8074;
    --ptg-a-border: #2e2e32;
    --ptg-a-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

body.category .filter-warp > .container {
    background: var(--ptg-a-card);
    border: 1px solid var(--ptg-a-border);
    border-radius: 18px;
    box-shadow: var(--ptg-a-shadow);
    padding: 16px 18px 10px;
}

body.category .filter-warp .filter-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    border: 0;
}

body.category .filter-warp .filter-name {
    flex: 0 0 auto;
    min-width: 72px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ptg-a-sub);
    margin: 0;
    padding: 0;
}

body.category .filter-warp .filter-link {
    margin: 0;
    padding: 0;
}

body.category .filter-warp .filter-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ptg-a-sub);
    background: var(--ptg-a-bg);
    border: 1px solid var(--ptg-a-border);
    text-decoration: none;
    transition: .15s ease;
}

body.category .filter-warp .filter-link a:hover {
    color: var(--ptg-a-accent);
    border-color: rgba(255, 80, 0, 0.35);
}

body.category .filter-warp .filter-link.active a {
    color: #fff;
    background: linear-gradient(90deg, #ff8c00, #ff5000);
    border-color: transparent;
}

/* 排序行：底边高亮，贴近全部游戏页 */
body.category .filter-warp .filter-item:last-child .filter-link a {
    border-radius: 8px;
    background: transparent;
    border-color: transparent;
}

body.category .filter-warp .filter-item:last-child .filter-link.active a {
    color: var(--ptg-a-accent);
    background: transparent;
    border-color: transparent;
    box-shadow: inset 0 -2px 0 var(--ptg-a-accent);
    border-radius: 0;
}

body.category .archive-page,
body.category .container.archive,
body.category .posts-warp {
    color: var(--ptg-a-text, inherit);
}

body.category .posts-warp .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

body.category .post-item.item-grid {
    background: var(--ptg-a-card, #fff);
    border: 1px solid var(--ptg-a-border, #ececf0);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ptg-a-shadow, 0 10px 28px rgba(15, 23, 42, 0.06));
    height: 100%;
}

[data-bs-theme="dark"] body.category .post-item.item-grid {
    background: #1a1a1c;
    border-color: #2e2e32;
}

body.category .post-item.item-grid .entry-media,
body.category .post-item.item-grid .entry-media.ratio {
    border-radius: 0;
}

body.category .post-item.item-grid .entry-wrapper {
    padding: 12px 14px 14px;
}

body.category .post-item.item-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.category .post-item.item-grid .entry-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.category .post-item.item-grid .entry-cat-dot {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.category .post-item.item-grid .entry-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.category .post-item.item-grid .entry-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

body.category .post-item.item-grid .entry-meta {
    margin-top: auto;
}

/* 卡片底部指标：均分排布（时间 / 收藏 / 浏览 / 评论 / 大小 / 下载） */
.ptg-entry-meta,
body.category .entry-meta,
.ptg-mods-page .entry-meta {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 6px;
    justify-content: space-between !important;
    width: 100%;
    font-size: 12px;
}

.ptg-entry-meta > span,
body.category .entry-meta > span,
.ptg-mods-page .entry-meta > span {
    flex: 0 1 auto;
    white-space: nowrap;
    min-width: 0;
}

.ptg-entry-meta .meta-price,
.ptg-entry-meta .meta-downs,
body.category .entry-meta .meta-price,
body.category .entry-meta .meta-downs,
.ptg-mods-page .entry-meta .meta-downs {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline-start: 0 !important;
}

.ptg-entry-meta .meta-comments,
.ptg-entry-meta .meta-size,
body.category .entry-meta .meta-comments,
body.category .entry-meta .meta-size,
.ptg-mods-page .entry-meta .meta-comments,
.ptg-mods-page .entry-meta .meta-size {
    color: inherit;
}

.ptg-entry-meta .meta-likes,
body.category .entry-meta .meta-likes {
    display: none !important;
}
