/* 百德外链对接插件 - 增强功能样式 v2.7.0 */

/* ========== 拖拽上传区域 ========== */
.baide-cpan-upload-area {
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all .3s ease;
    background: #fafafa;
    cursor: pointer;
    position: relative;
}
.baide-cpan-upload-area:hover {
    border-color: #667eea;
    background: #f5f7ff;
}
.baide-cpan-upload-area.drag-over {
    border-color: #667eea;
    background: #eef1ff;
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(102,126,234,.15);
}
.baide-cpan-upload-area .upload-icon {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 10px;
}
.baide-cpan-upload-area .upload-hint {
    color: #888;
    font-size: 13px;
    margin-top: 6px;
}
.baide-cpan-upload-area .upload-hint kbd {
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 12px;
    font-family: monospace;
}

/* ========== 上传进度条 ========== */
.baide-upload-progress-list {
    margin-top: 16px;
}
.baide-upload-progress-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    animation: baideSlideIn .3s ease;
}
@keyframes baideSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.baide-upload-progress-item.upload-success {
    border-color: #c6f6d5;
    background: #f0fff4;
}
.baide-upload-progress-item.upload-error {
    border-color: #fed7d7;
    background: #fff5f5;
}
.baide-upload-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
}
.baide-upload-progress-name {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}
.baide-upload-progress-percent {
    color: #667eea;
    font-weight: 700;
    font-size: 12px;
}
.baide-upload-progress-bar {
    width: 100%;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}
.baide-upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width .2s ease;
}
.baide-upload-progress-status {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ========== 批量操作栏 ========== */
.baide-batch-action-bar {
    display: none;
    position: sticky;
    bottom: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 12px 0;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    z-index: 100;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.baide-batch-action-bar.show {
    display: flex;
}
.baide-batch-count {
    font-weight: 700;
    color: #667eea;
    margin-right: auto;
}
.baide-batch-copy-btn {
    font-size: 12px !important;
    padding: 4px 12px !important;
}

/* ========== 附件卡片复选框 ========== */
.baide-attachment-checkbox-wrap {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(255,255,255,.9);
    border-radius: 4px;
    padding: 2px;
}
.baide-attachment-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========== 配额提示 ========== */
.baide-quota-bar {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
}
.baide-quota-bar .quota-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #666;
}
.baide-quota-bar .quota-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.baide-quota-bar .quota-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    border-radius: 3px;
    transition: width .3s ease;
}
.baide-quota-bar .quota-fill.warning {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}
.baide-quota-bar .quota-fill.danger {
    background: linear-gradient(90deg, #f56565, #c53030);
}

/* ========== 相册标签 ========== */
.baide-album-tag {
    display: inline-block;
    background: #eef1ff;
    color: #667eea;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-right: 4px;
}

/* ========== 回收站标识 ========== */
.baide-trashed-badge {
    display: inline-block;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* 修复附件卡片按钮文字竖排 */
.but-average {
    display: flex !important;
    gap: 4px !important;
    padding: 4px !important;
}
.but-average > .but,
.but-average > a.but,
.but-average > button.but {
    flex: 1 !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 4px 6px !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
