.gallery-detail {
    padding: 1px;
    padding-top: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-detail.loaded {
    opacity: 1;
}

.gallery-header {
    margin-bottom: 1px;
    padding: 0;
    position: relative;
    height:56px;
}

.gallery-title {
    font-size: 18px;
    margin: 0 0 ;
    padding: 0 15px 0 35px;
    /*border-bottom: 1px solid #eee;*/
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    font-weight: bold;
    min-height: 28px;
    display: flex;
    align-items: center;
}
/* 返回按钮样式 */
.back-btn {
    position: fixed;
    top: 63px;
    left: 5px;
    width: 28px;
    height: 28px;
    background: transparent;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/* 悬浮效果 */
.back-btn:hover {
    opacity: 0.7;
}

/* 点击效果 */
.back-btn:active {
    transform: scale(0.95);
}

.view-mode-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 0 1px 0;
    position: absolute;
    bottom: 0;
    right: 0;
}

.view-mode {
    display: flex;
    background: #f5f5f5;

    overflow: hidden;
}
.view-mode img{width:100%; height:100%;}
.mode-btn {

    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin-right:2px;
    width:20px;
    display: block;
    height: 20px;

}
.mnb-1{background: url("../../images/ggan.png");background-size:cover;}
.mnb-2{background: url("../../images/pban.png");background-size:cover;}

.mnb-1.active {
    background: url("../../images/ggan2.png");background-size:cover;
}
.mnb-2.active {
    background: url("../../images/pban2.png");background-size:cover;
}

/*.mode-btn.active {*/
/*    background: #d2d2d3;*/
/*    color: #fff;*/
/*}*/

.gallery-container {
    position: relative;
}

/* 瀑布流模式 */
.waterfall-mode {
    position: relative;
    margin: 0 -0.5px;
    padding-bottom: 1px;
}

.waterfall-mode .gallery-item {
    width: calc(50% - 1px);
    padding: 0.5px;
    float: left;
    margin-bottom: 1px;
}

.waterfall-mode .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

/* 宫格模式 */
.grid-mode {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5px;
}

.grid-mode .gallery-item {
    width: calc(33.333% - 1px);
    margin: 0.5px;
    position: relative;
}

.grid-mode .gallery-item::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.grid-mode .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 下载按钮样式 */
.pswp__download-btn {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1000;
    padding: 15px;
}

.pswp__download-btn a {
    display: inline-block;
    padding: 8px 20px;
    background: #007AFF;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 14px;
} 