/* 详情区域基础布局 */
.detail-container {
    flex: 3;  /* 占30% */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 400px;
    max-width: 500px;
}

.detail-container.empty {
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 14px;
}

/* 详情头部 */
.detail-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

/* URL组合输入框 */
.detail-url-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.detail-url-group .detail-control {
    flex: 1;
}

.detail-url-group .detail-btn {
    padding: 8px;
    min-width: 36px;
}

/* 分类显示 */
.detail-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
}

.category-main {
    color: #1890ff;
    font-weight: bold;
}

.category-divider {
    color: #999;
}

.category-sub {
    color: #666;
}

/* Youtube头图提取按钮 */
.youtube-extract-btn {
    margin-top: 8px;
    width: 100%;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.youtube-extract-btn:hover {
    background: #e8e8e8;
}

/* 详情操作区 */
.detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.detail-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.detail-btn-primary {
    background: #1890ff;
    color: white;
}

.detail-btn-primary:hover {
    background: #40a9ff;
}

.detail-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.detail-btn-secondary:hover {
    background: #e8e8e8;
}

/* 详情内容 */
.detail-content {
    flex: 1;
    overflow-y: auto;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item label {
    display: block;
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-label-group label {
    margin: 0;
}

.detail-label-group .detail-btn {
    padding: 2px 8px;
    font-size: 12px;
}

textarea.detail-control {
    min-height: 80px;
    max-height: 150px;
    resize: vertical;
    width: 100%;
}

/* 图片预览 */
.detail-image-preview {
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    padding: 5px;
}

.detail-image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

/* 查重弹窗 */
.duplicate-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.duplicate-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.duplicate-content h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 关键词标签 */
.duplicate-keywords-section {
    margin-bottom: 20px;
}

.duplicate-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.duplicate-keyword-tag {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    color: #1890ff;
}

/* 文章列表 */
.duplicate-articles-section {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 20px;
}

.duplicate-article-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.duplicate-article-item:last-child {
    border-bottom: none;
}

.duplicate-article-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.duplicate-highlight {
    color: #ff4d4f;
    font-weight: bold;
}

.duplicate-no-results {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* 查重弹窗 */
.duplicate-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.duplicate-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.duplicate-content h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.duplicate-list {
    flex: 1;
    overflow-y: auto;
    min-height: 100px;
}


/* 错误提示 */
.detail-invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* 查重错误提示 */
.duplicate-error {
    color: #ff4d4f;
    font-size: 14px;
    padding: 20px;
    text-align: center;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    background: #fff2f0;
}

.duplicate-error i {
    margin-right: 8px;
}

/* 保存提示 */
.detail-save-tip {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}