/* 相册页面样式 */
.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title h1 {
    color: #333;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-title p {
    color: #666;
    font-size: 16px;
}

/* 相册列表 */
.album-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    padding: 0 20px;
}

/* 相册卡片 */
.album {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.album:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 相册封面 */
.album-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album:hover .album-cover img {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px 15px 15px;
    text-align: right;
}

.album-count {
    font-size: 14px;
    opacity: 0.9;
}

/* 相册信息 */
.album-info {
    padding: 15px;
}

.album-info h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: bold;
}

.album-info p {
    color: #666;
    font-size: 14px;
}

/* 相册弹窗 */
.album-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.close:hover {
    color: #ff4757;
    transform: scale(1.1);
}

.modal-header {
    padding: 30px 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.modal-header h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

/* 照片画廊 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 30px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 图片查看器弹窗 */
.image-viewer {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.viewer-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 10px;
}

.viewer-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.viewer-close:hover {
    color: #ff4757;
    transform: scale(1.1);
}

/* 图片导航按钮 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    z-index: 1110;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title h1 {
        font-size: 28px;
    }
    
    .album-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .album-cover {
        height: 150px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 20px;
    }
    
    .photo-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 24px;
    }
    
    .album-list {
        grid-template-columns: 1fr;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .photo-item img {
        height: 120px;
    }
}