/* ============================================
   图片概览页面样式
   ============================================ */

.photo-overview-page {
    background-color: #fff;
    padding: 10px 0 60px;
}
.photo-overview-page .block-header{
    margin-bottom: 30px;
}


/* 图片网格 */
.photo-grid-section {
    margin-bottom: 50px;
    overflow: hidden;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap:20px 46px;
}

.photo-item {
    background-color: #fff;
    /* border-bottom: 1px solid #e0e0e0; */
    position: relative;
}
.photo-item::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% + 46px);
    height: 1px;
    /* border-bottom: 1px solid #e0e0e0; */
    background-color: #e0e0e0;
}
.photo-item:nth-child(4n)::after{
    width: 100%;
}

.photo-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.photo-image-wrapper {
    width: 100%;
    height: 151px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* .photo-item:hover .photo-image {
    transform: scale(1.05);
} */

.photo-title {
    font-size: 20px;
    font-weight: normal;
    color: #333;
    margin: 15px 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}

.photo-date {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px;
}

.photo-item:hover .photo-title {
    color: #115A94;
}
.mobile-photo-grid-section{
    display: none;
}

/* 音频播放器弹出框 */
.audio-player-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: white;
    box-shadow: 2px 0px 8px 0px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    min-width: 300px;
    padding: 8px 10px;
}
.audio-player-modal button{
    border: none;
    background: none;
}
.audio-player-modal.show {
    display: block;
}

.audio-player-content {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.audio-player-title {
    font-size: 18px;
    color: #333;
    font-weight: normal;
    width: 216px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.audio-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

/* 暂停按钮图标控制 */
.pause-btn img[alt="继续播放"] {
    display: none;
}

.pause-btn img[alt="暂停"] {
    display: block;
}

/* 响应式设计 - 平板 */
@media screen and (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap:20px 74px;
    }
    .photo-item::after,.photo-item:nth-child(4n)::after{
        width: calc(100% + 74px);
    }
    .photo-item:nth-child(3n)::after{
        width: 100%;
    }
    .photo-title{
        font-size: 18px;
    }
}

/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
    .photo-overview-page {
        padding: 20px 0 0;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .photo-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    .photo-item::after,.photo-item:nth-child(4n)::after{
        width: 100%;
    }
    .photo-item:nth-child(3n)::after{
        width: 100%;
    }
    .photo-item:last-child::after{
        display: none;
    }
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .photo-image-wrapper {
        height: auto;
    }
    .photo-image-wrapper img{
        width: 100%;
    }
    .photo-title {
        font-size: 18px;
        margin: 12px 12px 6px;
        min-height: auto;
    }

    .photo-date {
        font-size: 16px;
        margin: 0 12px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .pagination-section{
        display: none;
    }
    .photo-grid-section{
        margin-bottom: 0;
    }
    .mobile-photo-grid-section{
        display: block;
    }
    .desktop-photo-grid-section{
        display: none;
    }
}

