/* 拍品区域容器 */
.auction-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    margin-left: 30px;
    background-color: var(--background-color);
}

/* 拍品网格布局 */
.items-grid {
    display: grid;
    grid-template-columns: repeat(6, 282px); /* 修改为282px宽度 */
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* 拍品卡片样式 */
.auction-section .auction-item {
    width: 282px; /* 修改为282px */
    height: 453.56px; /* 设置固定高度 */
    margin: 0 auto;
    background: #FDF5E6;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(139, 69, 19, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.auction-section .auction-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
}

/* 拍品图片容器 */
.auction-section .item-image {
    position: relative;
    width: 100%;
    height: 282px; /* 设置为1:1的正方形 */
    flex-shrink: 0; /* 防止图片区域被压缩 */
    overflow: hidden;
    background-color: #f8f3e9;
    border-bottom: 2px solid rgba(139, 69, 19, 0.15);
}

.auction-section .item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(139, 69, 19, 0.05), rgba(139, 69, 19, 0.1));
    pointer-events: none;
}

.auction-section .item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.auction-section .auction-item:hover .item-image img {
    transform: scale(1.05);
}

/* 拍品信息 */
.auction-section .item-info {
    padding: 0.8rem;
    flex-grow: 1; /* 让信息区域填充剩余空间 */
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #FDF5E6, #f8f3e9);
    border-top: 1px solid rgba(139, 69, 19, 0.1);
}

.auction-section .item-id {
    font-size: 0.85rem;
    color: #8B4513;
    margin-bottom: 0.5rem; /* 减小下边距，原来是 0.8rem */
    font-family: "FangSong", "仿宋", serif;
    letter-spacing: 1px;
    border-bottom: 1px dashed rgba(139, 69, 19, 0.2);
    padding-bottom: 0.3rem; /* 减小下内边距，原来是 0.5rem */
}

/* 添加新的标题包装器样式 */
.auction-section .item-title-wrapper {
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #8B4513;
}

.auction-section .item-title-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30%;
    height: 1px;
    background: #8B4513;
}

.auction-section .item-title {
    font-size: 1rem;
    color: #2C1810;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-weight: normal;
    font-family: "SimSun", "宋体", serif;
    flex-grow: 1;
}

.auction-section .item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #8B4513;
    padding-top: 0.5rem; /* 减小上内边距，原来是 0.8rem */
    position: relative;
}

.auction-section .item-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 69, 19, 0.08);
    padding: 0.3rem 0.6rem; /* 减小内边距，原来是 0.4rem 0.8rem */
    border-radius: 4px;
    border: 1px solid rgba(139, 69, 19, 0.15);
}

.auction-section .item-views i {
    color: #8B4513;
    font-size: 0.9rem;
}

.auction-section .item-status {
    padding: 0.3rem 0.6rem; /* 减小内边距，原来是 0.4rem 0.8rem */
    border-radius: 4px;
    font-size: 0.8rem; /* 稍微减小字体大小 */
    font-weight: normal;
    letter-spacing: 1px;
    font-family: "FangSong", "仿宋", serif;
}

.auction-section .status-upcoming {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.auction-section .status-ongoing {
    background: #8B4513;
    color: #FDF5E6;
    border: 1px solid #8B4513;
}

.auction-section .status-ended {
    background: #DEB887;
    color: #2C1810;
    border: 1px solid #DEB887;
}

/* 分页控制器样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-btn, .page-number {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-number:hover {
    background: var(--primary-color);
    color: white;
}

.page-number.active {
    background: var(--primary-color);
    color: white;
}

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

/* 响应式布局 */
@media (max-width: 1800px) {
    .items-grid {
        grid-template-columns: repeat(5, 280px);
    }
}

@media (max-width: 1600px) {
    .items-grid {
        grid-template-columns: repeat(4, 280px);
    }
}

@media (max-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(3, 280px);
    }
}

@media (max-width: 992px) {
    .items-grid {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(1, 280px);
        gap: 1.5rem;
    }
}

/* 添加错误消息样式 */
.error-message {
    text-align: center;
    padding: 2rem;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 1rem 0;
}

.no-items {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
} 