/* 关键词过滤页面样式 */

.info-section {
    margin-bottom: 30px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.info-card li {
    margin-bottom: 8px;
}

/* 上传方式切换 */
.upload-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.upload-area {
    display: none;
}

.upload-area.active {
    display: block;
}

/* 拖拽区域 */
.drop-zone {
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #667eea;
    background: #f8f9ff;
}

.drop-zone .upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23667eea"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>') no-repeat center;
    background-size: contain;
}

.file-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.file-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* 关键词设置 */
.keywords-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.keywords-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #495057;
}

.help-text {
    font-size: 13px;
    color: #ffd700;
    margin-top: 8px;
    margin-bottom: 0;
}

/* 关键词文本域样式 */
#keywords {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#keywords:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 进度条 */
.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.progress-text {
    text-align: center;
    font-size: 16px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: #495057;
}

.info-item .value {
    color: #667eea;
    font-weight: 600;
}

/* 结果展示 */
.result-info {
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.result-item.success {
    background: #d4edda;
    border-left: 5px solid #28a745;
}

.result-item.error {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
}

.result-item .icon {
    font-size: 32px;
    margin-right: 15px;
}

.result-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.result-item p {
    margin: 0;
    color: #495057;
}

/* 视频预览 */
.video-preview {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.video-preview h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.video-preview video {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 下载链接 */
.download-links {
    margin: 30px 0;
}

.download-links h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
}

.download-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.download-btn .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.download-btn span:last-child {
    font-weight: 600;
}

/* 移除的片段信息 */
.removed-info {
    margin: 30px 0;
    padding: 20px;
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
}

.removed-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #856404;
}

.segments-list {
    max-height: 300px;
    overflow-y: auto;
}

.segment-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #ffc107;
}

.segment-item .keyword {
    font-weight: 600;
    color: #856404;
    margin-bottom: 5px;
}

.segment-item .time {
    font-size: 13px;
    color: #ffd700;
}

.segment-item .confidence {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
}

.segment-item .context {
    font-size: 13px;
    color: #ffd700;
    margin-top: 5px;
    font-style: italic;
}

.segment-item.kept {
    border-left-color: #28a745;
    background: #f8fff9;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.button-group .btn {
    flex: 1;
}

/* 预览区域 */
.preview-section {
    margin-bottom: 30px;
}

.preview-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-item .label {
    font-weight: 600;
    color: #495057;
}

.summary-item .value {
    color: #667eea;
    font-weight: 600;
}

.summary-item.warning .value {
    color: #dc3545;
}

.summary-item.success .value {
    color: #28a745;
}

.removed-preview,
.kept-preview {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.removed-preview h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #dc3545;
}

.kept-preview h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #28a745;
}

/* 响应式 */
@media (max-width: 768px) {
    .upload-methods {
        flex-direction: column;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}
