/* 图片上传样式 */
.image-upload-container {
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    padding: 15px;
    background-color: #f8f9fa;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 60px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eaeaea;
    cursor:zoom-in;
}


.preview-item:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.preview-item .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 5px;
    font-size: 11px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-item:hover .image-overlay {
    opacity: 1;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
}

.upload-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #0d6efd;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #333;
    z-index: 2;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

.empty-placeholder {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.satellite-img{
    width: 50px;
}

/* 详情页面图片样式 */
.detail-image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.detail-image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.detail-image-item:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.detail-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image-item .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 5px;
    font-size: 11px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-image-item:hover .image-overlay {
    opacity: 1;
}

/* 无图片提示 */
.no-images {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* 图片预览模态框样式 */
#imagePreviewModal .modal-content {
    background: rgba(0, 0, 0, 0.9) !important;
}

#imagePreviewModal .modal-body {
    background: transparent;
}

/* 卡片样式增强 */
.card {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    font-weight: 600;
}


/* 查看模式下图片上传区域样式 */
.readonly-mode .image-upload-container {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    pointer-events: none;
}

.readonly-mode .upload-btn {
    display: none !important;
}

.readonly-mode .delete-btn {
    display: none !important;
}

.readonly-mode .image-upload-input {
    display: none !important;
}

/* 确保预览图片在查看模式下仍然可以点击放大 */
.readonly-mode .preview-item {
    pointer-events: auto;
    cursor: zoom-in;
}

.readonly-mode .preview-item:hover {
    transform: none;
    border-color: #eaeaea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* 通用文件操作按钮样式（file-action-btn）：统一基础样式 */
.file-action-btn {
    /* 布局相关 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    margin: 5px 20px;
    border-radius: 4px;
    /* 样式相关 */
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    /* 过渡效果：hover/active 平滑切换 */
    transition: all 0.2s ease-in-out;
    /* 防止按钮被遮挡 */
    position: relative;
    z-index: 5;
}

/* PDF查看按钮专属样式（pdf-view-btn）：红色系（贴合PDF默认视觉） */
.pdf-view-btn {
    background-color: #dc3545; /* 经典PDF红色 */
    color: #ffffff; /* 白色文字 */
}


/* PDF按钮点击激活状态：恢复原位，加深阴影 */
.pdf-view-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

/* CAD下载按钮专属样式（cad-download-btn）：蓝色/深灰色系（贴合CAD专业感） */
.cad-download-btn {
    background-color: #007bff; /* 经典蓝色 */
    color: #ffffff; /* 白色文字 */
}


/* CAD按钮点击激活状态：恢复原位，加深阴影 */
.cad-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.2);
}

/* 可选：适配预览项布局，调整按钮间距（若需要） */
.preview-item .file-action-btn {
    margin-right: 8px; /* 多个按钮之间的间距（若有） */
}

/* 可选：小屏幕适配，缩小按钮尺寸 */
@media (max-width: 768px) {
    .file-action-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}


/* 通用文件图标容器（file-icon）：统一基础样式 */
.file-icon {
    /* 布局相关：居中显示，设置固定尺寸，确保图标整齐 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px; /* 略高于宽度，贴合文件图标视觉比例 */
    margin: 0 auto 10px; /* 上下间距，水平居中 */
    /* 样式相关：背景色+圆角，增强视觉层次感 */
    border-radius: 6px;
    font-size: 32px; /* 图标大小，可按需调整 */
    /* 防止图标溢出，与预览项适配 */
    overflow: hidden;
    position: relative;
}

/* PDF专属图标样式（pdf-icon）：与PDF按钮红色系呼应 */
.pdf-icon {
    /* 背景色：浅红，与按钮深红红呼应，视觉统一 */
    background-color: #f8d7da;
    /* 图标颜色：PDF经典红色，与按钮一致 */
    color: #dc3545;
}

/* CAD专属图标样式（cad-icon）：与CAD按钮蓝色系呼应 */
.cad-icon {
    /* 背景色：浅蓝，与按钮深蓝呼应，视觉统一 */
    background-color: #cce5ff;
    /* 图标颜色：CAD经典蓝色，与按钮一致 */
    color: #007bff;
}


/* 可选：图标hover轻微效果，提升交互感 */
.file-icon:hover {
    transform: scale(1.05); /* 轻微放大 */
    transition: transform 0.2s ease-in-out;
}

/* 可选：小屏幕适配，缩小图标尺寸 */
@media (max-width: 768px) {
    .file-icon {
        width: 50px;
        height: 60px;
        font-size: 26px;
    }
}

/* 可选：配合预览项布局，调整图标与文字的间距 */
.preview-item .file-icon {
    margin-bottom: 8px; /* 与下方file-info的间距 */
}