/* AI拆书搜索模态框样式 */
.search-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 搜索进度条 */
.search-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(103, 126, 234, 0.1);
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-animation 1.5s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 搜索结果 */
.search-results {
    margin-top: 1.5rem;
}

.search-results h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-results h4:before {
    content: '';
    width: 4px;
    height: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* 搜索结果项 */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-result-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

.search-result-item.selected {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 结果项前面的复选框 */
.search-result-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* 结果项内容 */
.search-result-content {
    flex: 1;
    min-width: 0;
    padding-left: 0.5rem;
}

.search-result-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.search-result-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-result-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 分析进度样式 */
.analysis-progress {
    text-align: center;
    padding: 2rem;
}

.progress-circle {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.analysis-steps {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.analysis-steps .step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s;
}

.analysis-steps .step i {
    color: var(--text-tertiary);
    font-size: 0.5rem;
    transition: all 0.3s;
}

.analysis-steps .step.active {
    background: rgba(102, 126, 234, 0.1);
}

.analysis-steps .step.active i {
    color: var(--primary-color);
    animation: rotate 1s linear infinite;
}

.analysis-steps .step.completed i {
    color: var(--success-color);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 分析结果样式 */
.analysis-result {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
}

.result-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.result-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.result-section h4 i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.result-content {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 滚动条样式 */
.results-list::-webkit-scrollbar,
.result-content::-webkit-scrollbar {
    width: 6px;
}

.results-list::-webkit-scrollbar-track,
.result-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb,
.result-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb:hover,
.result-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}