/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== 横幅 ===== */
.banner {
    width: 100%;
    height: 600px;
    background: #000000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(174deg, #121212 15%, rgba(18, 18, 18, 0.0152) 59%, rgba(41, 41, 41, 0) 59%);
    opacity: 0.8228;
    background-image: url(../images/collection_top_bg.png);
    background-size: cover;
}

.banner-text {
    position: relative;
    z-index: 10;
    text-align: center;
}

.banner-title {
    margin-bottom: 10px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 48px;
    color: #FFFFFF;
    line-height: 67px;
    letter-spacing: 2px;
    text-align: center;
    font-style: normal;
}

.banner-subtitle {
    margin-top: 10px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 40px;
    color: #A77E30;
    line-height: 56px;
    letter-spacing: 3px;
    text-align: left;
    font-style: normal;
}

.banner-line {
    width: 46px;
    height: 3px;
    background: #FFFFFF;
    margin: 20px auto 0;
}

/* ===== 主容器 ===== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* ===== 搜索框 ===== */
.search-box {
    background: #242424;
    padding: 24px 31px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.search-input {
    padding: 12px 16px;
    border: 1px solid #D0D0D0;
    background: #343434;
    color: #919191;
    font-size: 13px;
    border-radius: 2px;
    min-width: 240px;
    height: 47px;
}

.search-input::placeholder {
    color: #919191;
}

.search-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.author-input {
    min-width: 130px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.date-input {
    min-width: 130px;
}

.date-separator {
    color: #BA9F6F;
    font-size: 14px;
    white-space: nowrap;
}

.search-button {
    padding: 0;
    width: 105px;
    height: 47px;
    background: #B90804;
    border: 1px solid #B90804;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: all 0.3s;
    margin-left: auto;

    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 22px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
}

.search-button:hover {
    background: #A00603;
    border-color: #A00603;
}

.search-icon {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0px;
}

/* ===== 分类轮播 ===== */
.category-carousel-container {
    position: relative;
    margin-top: 100px;
    width: 1440px;
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 100px;
    justify-content: space-between;
}

.categories-wrapper {
    flex: 1;
    overflow: hidden;
}

.carousel-button {
    top: 100px;
    position: absolute;
    width: 56px;
    height: 56px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-button.prev {
    background-image: url(../images/index_collection_prev_btn.png);
}

.carousel-button.prev:hover {
    opacity: 0.8;
}

.carousel-button.next {
    right: 0;
    background-image: url(../images/banner_button_rigth.png);
}

.carousel-button.next:hover {
    opacity: 0.8;
}

.categories {
    width: 100%;
    display: flex;
    gap: 0px;
    flex: 1;
    z-index: 8;
}

.category-card {
    margin-right: 60px;
    flex-shrink: 0;
    width: 240px;
    text-align: center;
    cursor: pointer;
    /* transition: transform 0.3s; */
}
/* 高亮样式 */
.category-card.highlighted {
    transform: scale(1.05);
  
}
.category-card.highlighted .category-overlay {
    opacity: 1;
}
.category-card:hover {
    transform: scale(1.05);
}

.category-image {
    width: 240px;
    height: 240px;
    background: #595959;
    margin-bottom: 15px;
}

/* 保留旧的 .category-carousel 样式以防万一 */
.category-carousel {
    display: none;
}

.category-card.chinese .category-image {
    background: #B90804;
}

.category-name {
    left: 40px;
    top: -80px;
    position: relative;


    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 33px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
}


/* Overlay 层 - 默认隐藏 */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    background: #B90804;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 36px 30px;
    pointer-events: none;
}

/* Hover 时显示 overlay */
.category-card:hover .category-overlay {
    opacity: 1;
}

/* Overlay 标题样式 */
.overlay-title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 34px;
    letter-spacing: 0px;
    text-align: left;
    font-style: normal;
    margin: 0 0 8px 0;
}

/* Overlay 副标题样式 */
.overlay-subtitle {
    display: block;
    width: 100px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: left;
    font-style: normal;
    margin: 0;
}


/* ===== 分类标题 ===== */
.cate-name .section-title {
    display: block;
  
}
.section-title {
    margin: 0px 0 60px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-name {
    font-size: 48px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.title-divider {
    width: 1px;
    height: 30px;
    background: #262626;
    border: 1px solid #979797;
    margin: 0 15px;
}

.section-subtitle {
    font-size: 32px;
    color: #BA9F6F;
    margin: 0;
}

/* ===== 作品网格 ===== */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, 440px);
    gap: 60px;
    margin-bottom: 60px;
    padding: 0 60px;
    justify-content: center;
}

.artwork-card {
    background: #FFFFFF;
    transition: transform 0.3s, box-shadow 0.3s;
}

.artwork-card:hover {
    transform: translateY(-8px);
}

.artwork-image {
    width: 440px;
    height: 275px;
    background: #595959;
    overflow: hidden;
    margin-bottom: 15px;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-title {

    margin-bottom: 15px;
    word-wrap: break-word;
    word-break: break-all;

    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 26px;
    color: #262626;
    line-height: 38px;
    letter-spacing: 1px;
    text-align: left;
    font-style: normal;
}

.artwork-info {
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 14px;
    color: #BA9F6F;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    display: none;
    flex-direction: column;
    gap: 0;
}

.artwork-info-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 60px 0;
    padding: 0 60px;
}

.pagination-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #D0D0D0;
    background: #F5F5F5;
    color: #515151;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.pagination-btn img {
    width: 42px;
    height: 42px;
}

.pagination-btn:hover {
    border-color: #BA9F6F;
    color: #BA9F6F;
}

.pagination-btn.active {
    background: #B90804;
    color: #FFFFFF;
    border-color: #B90804;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-prev {
    background: #B90804;
    border-color: #B90804;
}

.pagination-next {}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .container {
        padding: 20px;
    }

    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 48px;
    }

    .banner-subtitle {
        font-size: 32px;
    }

    .artwork-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        gap: 8px;
    }

    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}