/* ========== 图片预览模态框样式 ========== */

.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999; /* 最高层级 */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.image-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.image-preview-content {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 1;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-preview-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    min-height: 300px;
    position: relative;
}

.image-preview-wrapper img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.image-preview-wrapper img.zoomed {
    cursor: grab;
    transform: scale(2);
}

.image-preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.image-preview-info {
    width: 100%;
    background: #1f1f1f;
    padding: 20px;
    border-top: 1px solid #333;
    animation: slideUp 0.3s ease;
}

.preview-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.image-preview-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 700;
}

.btn-copy-preview {
    background: #667eea;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy-preview:hover {
    background: #5a67d8;
}

.image-preview-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.6;
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
    background: #2d3748;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}
