/* ==================== 图库专属样式 - 主播照片网格布局 ==================== */
.photo-gallery {
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.gallery-item {
    width: 25%;
    padding: 0 8px 16px 8px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    cursor: pointer;
    list-style: none;
}
.gallery-inner {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.gallery-item:hover .gallery-inner {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.gallery-img {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    width: 100%;
    padding-bottom: 135%;
}
.gallery-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}
.gallery-info {
    padding: 12px;
    text-align: center;
}
.gallery-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gallery-info .desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 34px;
}
.gallery-meta {
    font-size: 11px;
    color: #bbb;
    border-top: 1px solid #eee;
    padding-top: 6px;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

/* ==================== 响应式适配 ==================== */
/* 平板端 */
@media (max-width: 1024px) {
    .gallery-item {
        width: 33.333%;
    }
}
/* 移动端 - 两列均匀居中 */
@media (max-width: 768px) {
    .photo-gallery {
        margin: 0;
        padding: 0 8px;
        justify-content: center;
    }
    .gallery-item {
        width: calc(50% - 0px);
        padding: 0 6px 16px 6px;
    }
    .gallery-info h3 {
        font-size: 13px;
    }
    .gallery-info .desc {
        font-size: 11px;
        -webkit-line-clamp: 1;
        min-height: auto;
    }
    .gallery-meta {
        font-size: 10px;
    }
}
/* 小手机 */
@media (max-width: 480px) {
    .photo-gallery {
        padding: 0 4px;
    }
    .gallery-item {
        width: calc(50% - 0px);
        padding: 0 4px 12px 4px;
    }
    .gallery-info {
        padding: 8px;
    }
    .gallery-info h3 {
        font-size: 12px;
    }
}
/* 超小手机 */
@media (max-width: 360px) {
    .photo-gallery {
        padding: 0 2px;
    }
    .gallery-item {
        padding: 0 2px 10px 2px;
    }
}

/* ==================== 分类头部装饰 ==================== */
.sec-panel-head.gallery-header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 40px !important;
    text-align: center;
    color: #fff;
}
.gallery-header h1 {
    font-size: 32px;
    margin: 0 0 10px;
    font-weight: 700;
}
.gallery-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}
@media (max-width: 768px) {
    .sec-panel-head.gallery-header {
        margin-bottom: 25px !important;
        padding: 20px 15px;
    }
    .gallery-header h1 {
        font-size: 24px;
    }
    .gallery-header p {
        font-size: 14px;
    }
}

/* ==================== 分页样式 ==================== */
.pagination {
    margin-top: 30px;
    text-align: center;
}
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}
.clearfix:after {
    clear: both;
}

/* ==================== 热门推荐样式 ==================== */
.widget {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.widget-title h3 {
    font-size: 16px;
    margin: 0;
    padding: 12px 15px 0;
    border-left: 4px solid #ff6b6b;
}
.hot-anchors {
    padding: 0 15px 15px;
}
.hot-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    cursor: pointer;
}
.hot-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hot-avatar {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}
.hot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hot-info {
    flex: 1;
}
.hot-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.hot-stats {
    font-size: 12px;
    color: #999;
}