/* 基础样式调整 */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.submit-card {
    border-radius: 0.5rem;
    border: none;
}

/* 拖拽区域样式 */
.drop-zone {
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone.dragover {
    border-color: #0d6efd;
    background-color: #e9ecef;
}

#imagePreview {
    max-height: 200px;
    object-fit: contain;
    width: 100%;
}

/* 内容卡片样式 */
.content-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1rem;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.content-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.type-text { background-color: #e3f2fd; color: #0d6efd; }
.type-image { background-color: #e8f5e9; color: #0dcaf0; }
.type-file { background-color: #fdf2e9; color: #fd7e14; }

.content-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: inherit;
    font-size: 0.95rem;
}

.text-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.copy-btn, .delete-btn, .expand-btn, .download-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 图片查看模态框 */
#modalImage {
    max-height: 90vh;
    object-fit: contain;
}

.img-thumbnail-preview {
    max-height: 150px;
    cursor: zoom-in;
    object-fit: cover;
}

/* 吐司提示框图标 */
.toast-success { background-color: #198754; }
.toast-error { background-color: #dc3545; }
.toast-info { background-color: #0dcaf0; }

/* 复制反馈 */
.copy-feedback {
    color: #198754;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}