﻿/* ===========================
   类型列表：分类 + 标签概览（平铺样式）
=========================== */
.genres-overview-page {
    padding-bottom: 1.5rem;
}

.genres-overview-section {
    margin-bottom: 1.75rem;
}

/* ===========================
   区块头部（标题居中 + 更多链接靠右）
=========================== */
.genres-section-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 1.75rem;
    margin: 0.875rem 0;
}

.genres-section-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.genres-section-more {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d8dee9;
    text-decoration: none;
    white-space: nowrap;
}

.genres-section-more .nav-chevron--right {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.genres-section-more:hover {
    color: #ff4a7c;
}

/* ===========================
   分类网格容器
=========================== */
.genres-overview-category-wrap {
    margin-bottom: 0;
}

.grid-list-container {
    margin-bottom: 1rem;
}

.xqbj-component-grid-list-item {
    align-items: stretch !important;
    justify-content: center;
}

.xqbj-component-grid-list-item .title {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.xqbj-component-grid-list-item:hover .title {
    color: #ff4a7c !important;
}

.xqbj-component-grid-list-item:hover .count {
    color: #ffffff !important;
}

/* ===========================
   标签网格
=========================== */
.genres-overview-tag-grid {
    margin-bottom: 0;
}

.genres-tag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.4rem;
    margin-bottom: 1.5rem;
}

.genres-tag-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 0;
    min-height: 1.8rem;
    padding: 0.35rem 0.3rem;
    border-radius: 0.3rem;
    background: rgba(25, 29, 39, 1);
    border: none;
    font-size: 0.65rem;
    line-height: 1.3;
    color: #FFFFFF73;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genres-tag-item:hover {
    color: #ff4a7c;
}

.tag-count {
    flex-shrink: 0;
    font-size: 0.6rem;
    color: #7b7f85;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.05rem 0.35rem;
    border-radius: 0.6rem;
}

.genres-tag-item:hover .tag-count {
    color: rgba(255, 74, 124, 0.8);
    background: rgba(255, 74, 124, 0.1);
}

/* ===========================
   桌面端
=========================== */
@media (min-width: 960px) {
    .genres-section-more {
        font-size: 0.7rem;
    }

    .genres-section-title {
        font-size: 1.25rem;
    }

    .genres-tag-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.75rem 0.65rem;
        margin-bottom: 2rem;
    }

    .genres-tag-item {
        min-height: 2rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
}
