/* 设计展示页面样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 画廊控制 */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-btn.active,
.view-btn:hover {
    background: #667eea;
    color: white;
}

.filter-options select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 1rem;
}

/* 画廊网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-grid.list-view {
    grid-template-columns: 1fr;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item.list-view {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.gallery-item.list-view .item-image {
    width: 150px;
    height: 100px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-image {
    transform: scale(1.05);
}

.item-info {
    padding: 1.5rem;
}

.item-info.list-view {
    padding: 0;
    flex: 1;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.item-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #667eea;
    color: white;
}

/* 加载更多 */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

#modal-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: #f8f9fa;
}

.image-info {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.image-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.image-info p {
    color: #666;
    margin-bottom: 1rem;
}

.image-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.modal-actions {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.download-btn,
.view-original-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.view-original-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.view-original-btn:hover {
    background: #667eea;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item.list-view {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-item.list-view .item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .image-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .gallery-item {
        margin: 0 1rem;
    }
    
    .item-info {
        padding: 1rem;
    }
    
    .modal-actions {
        padding: 1rem;
    }
    
    .download-btn,
    .view-original-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #333;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* 图片加载错误 */
.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: #f8f9fa;
    color: #666;
    border: 2px dashed #ddd;
    border-radius: 10px;
}

.image-error.list-view {
    height: 100px;
}

