/* Genres Section Styles */
.section--genres {
    margin-top: 70px;
    padding: 40px 0;
    background-color: #f9f9f9;
}

.section__title {
    font-family: Source Han Sans;
    font-size: 24px;
    font-weight: bold;
    line-height: 22.4px;
    display: flex;
    align-items: center;
    letter-spacing: 0px;
    color: #333333;
}

.genres-tags {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.genre-category {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

/* WebKit浏览器滚动条样式 */
.genre-category::-webkit-scrollbar {
    height: 8px;
}

.genre-category::-webkit-scrollbar-track {
    background: rgba(153, 153, 153, 0.1);
    border-radius: 4px;
}

.genre-category::-webkit-scrollbar-thumb {
    background: #999999;
    border-radius: 4px;
    border: 2px solid transparent;
}

.genre-category::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

.genre-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    color: #666;
    background-color: white;
}

.genre-tag:hover {
    background-color: #eef2f7;
    border-color: #a0d3e8;
}

.genre-tag.active {
    background-color: #e6e6ff;
    border-color: #9c9cff;
    color: #6c63ff;
    font-weight: bold;
}

/* 作品列表样式 */
#catalog-items .col-6,
#catalog-items .col-12 {
    padding: 15px;
}

#catalog-items .row {
    display: flex;
    flex-wrap: wrap;
}

#catalog-items .col-md-6 {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

#catalog-items .item--list {
    background-color: #FFFFFF !important;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 215px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

#catalog-items .item--list:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#catalog-items .item__row {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

/* 封面图片样式 */
#catalog-items .item__cover-wrapper {
    flex: 0 0 153px;
    position: relative;
    aspect-ratio: 2/3;
}

#catalog-items .item__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

#catalog-items .item__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

#catalog-items .item__cover:hover img {
    transform: scale(1.05);
}

/* 内容区域样式 */
#catalog-items .item__content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 215px;
}

#catalog-items .item__title {
    margin-bottom: 10px;
    font-family: Roboto, Roboto;
    font-weight: 700;
    font-size: 20px;
    color: #333333;
    line-height: 26px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

#catalog-items .item__title a {
    color: #333333 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

#catalog-items .item__title a:hover {
    color: #ff55a5;
}

/* 作者信息样式 */
#catalog-items .item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#catalog-items .item__author {
    font-family: Roboto, Roboto;
    font-weight: 400;
    font-size: 14px;
    color: #999999;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

#catalog-items .item__description {
    flex-grow: 1;
    display: block !important;
}

#catalog-items .item__description p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
    font-family: Roboto, Roboto;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

/* 标签样式 */
.item__tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.item__tags::-webkit-scrollbar {
    display: none;
}

.item__tag {
    display: inline-block;
    background-color: rgba(153, 153, 153, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0em;
    white-space: nowrap;
    flex-shrink: 0;


    font-family: Roboto, Roboto;
    font-weight: 400;
    font-size: 14px;
    color: #999999;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

/* 统计信息样式 */
.item__stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

.item__stat {
    display: flex;
    align-items: center;
    gap: 4px;

    font-family: Roboto, Roboto;
    font-weight: 400;
    font-size: 14px;
    color: #999999;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.item__stat svg {
    width: 14px;
    height: 12px;
    fill: #999999 !important;
}

.item__stat span {
    color: #999999 !important;
}

/* 分页样式 */
.section__paginator-pages {
    color: #fff !important;
}
