.prcdiv{
    position: relative; 
    width: 18rem; 
    margin: auto;
    margin-top: 0.25rem;
}
.butnext{
    display: inline-block;
    background-color: #f6f7fa;
    height: 1.75rem;
    line-height: 1.75rem;
    width: 1.75rem;
    text-align: center;
    border-radius: 100%;
    font-weight: bold;
    color: #888;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    left: 0;
    cursor: pointer;
}
.night .butnext{
    background-color: #444;
}
.layui-icon-right{
    right: 0;
    left: unset;
}

.prc{
    position: relative;
    width: 12rem;
    height: 12rem;
    margin: auto;
    border-radius: 6px;
    overflow: hidden;
}
.prc img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}
.butdivs{
    text-align: center;
    margin: 1rem 0;
}
.butdivs span{
    padding: 0.25rem 0.5rem;
    display: inline-block;
    background-color: #16b777;
    color: #fff;
    border-radius: 6px;
    margin: 0 0.2rem;
    cursor: pointer;
}
.butdivs a{color: #fff !important}
.cropper_buts{
    padding: 10px 5px;
}

.cropper_buts span{
    height: 1.4rem;
    line-height: 1.4rem;
    width: 1.8rem;
    display: inline-block;
    text-align: center;
    border: 1px solid #eee;
    font-weight: bold;
    font-size: 0.7rem;
    margin: 0 0 0 0.2rem;
    border-radius: 4px;
    cursor: pointer;
}

.night .cropper_buts span{
    border: 1px solid #555;
    color: #ccc;
}

.cropper_buts span.act{
    background-color: #2196f3;
    border: 1px solid #2196f3;
    color: #fff;
}

.cropper_buts span.lr{
    font-weight: unset;
    font-size: 0.6rem;
    margin-right: 0.25rem;
}
@media screen and (max-width: 430px){
    .prcdiv{
        width: 14rem;
    }
    .prc {
        width: 8rem;
        height: 8rem;
    }
}
@media screen and (max-width: 320px) {
    .prcdiv {
        width: 10rem;
    }
    .prc {
        width: 5rem;
        height: 5rem;
    }
}
.festival-tabs {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.layui-tab-title li {
    padding: 0 15px !important;
}

.festival-preview {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.preview-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.preview-content {
    position: relative;
    min-height: 80px;
}

.preview-loading {
    text-align: center;
    padding: 30px 0;
}

.loading-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.preview-loading .layui-icon {
    font-size: 24px;
    color: #5fb878;
}

.preview-loading span {
    color: #666;
    font-size: 14px;
}

.preview-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-item {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-item:hover {
    border-color: #5fb878;
    transform: scale(1.05);
}

.preview-item.active {
    border-color: #ff5722;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: #999;
    background: #f5f5f5;
    border-radius: 5px;
}

.butdivs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.butdivs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 20px;
    height: 38px;
    line-height: 38px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preview-item {
        width: 50px;
        height: 50px;
    }
    
    .festival-tabs .layui-tab-title li {
        padding: 0 8px !important;
        font-size: 14px;
    }
    
    .butdivs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .butdivs span {
        width: 150px;
    }
}