/* 样式文件 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.photo-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

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

.photo-thumbnail {
    height: 180px;
    object-fit: cover;
    width: 100%;
    background-color: #f8f9fa;
}

.photo-info {
    padding: 10px;
    font-size: 0.9rem;
}

.photo-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-meta {
    color: #6c757d;
    font-size: 0.85rem;
}

.photo-actions {
    padding: 10px;
    border-top: 1px solid #e9ecef;
}

.btn-action {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* 上传区域样式 */
#uploadForm .form-control {
    border-radius: 5px;
}

#uploadBtn:disabled {
    cursor: not-allowed;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

.status-checking {
    background-color: #ffc107;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .photo-thumbnail {
        height: 150px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.photo-card {
    animation: fadeIn 0.5s ease-out;
}

/* 上传进度条 */
.progress-bar {
    transition: width 0.3s ease;
}

/* 模态框样式 */
.modal-content {
    border-radius: 10px;
}

#modalPhotoImage {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}