

/* 快速添加知识节点面板样式 */
.quick-interest-panel,
.quick-interests-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    
    /* 性能优化 */
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    position: relative;
    z-index: 10;
}

.quick-panel-header {
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.2), rgba(255, 255, 255, 0.1));
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-panel-header h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.quick-panel-body {
    padding: 1.25rem;
}

.quick-input-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 输入框包装器 */
.quick-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 图片上传按钮 */
.quick-image-upload-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.image-upload-label {
    cursor: pointer;
    padding: 0.5rem;
    color: #2c3e50;  /* 改为深色 */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    margin: 0;
}

.image-upload-label:hover {
    color: #1a252f;  /* 悬停时更深 */
    background: rgba(44, 62, 80, 0.1);
}

.image-upload-label i {
    font-size: 1.2rem;
}

/* 图片预览区域 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-remove-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.image-remove-btn i {
    font-size: 0.9rem;
}

/* 分析结果区域样式 */
.analysis-section {
    margin-bottom: 1.5rem;
}

.analysis-section .section-title {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(173, 216, 230, 0.3);
}

.analysis-section .section-content {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.analysis-section .section-content p {
    margin-bottom: 0.75rem;
}

.analysis-section .section-content ul,
.analysis-section .section-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

/* 图片预览区域（居中显示） */
.quick-image-preview-centered {
    margin: 1.5rem 0;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.quick-image-preview-centered .image-preview-container {
    position: relative;
    display: inline-block;
    max-width: 600px;  /* 从400px增加到600px */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.quick-image-preview-centered .image-preview-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* 电脑端：横向布局 */
@media (min-width: 768px) {
    .quick-input-group {
        flex-direction: row;  /* 改为横向 */
        align-items: center;
        gap: 0.75rem;
    }
    
    .quick-input-wrapper {
        flex: 1;  /* 输入框占50% */
        min-width: 0;  /* 允许缩小 */
    }
    
    .quick-input-field {
        width: 100%;
        margin-bottom: 0;
    }
    
    .quick-input-actions {
        flex: 1;  /* 按钮区域也占50% */
        display: flex;
        gap: 0.5rem;
        margin-top: 0;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .quick-btn {
        flex: 1;  /* 四个按钮平均分配空间 */
        white-space: nowrap;  /* 按钮文字不换行 */
        min-width: 0;  /* 允许缩小以适应 */
        padding: 0.5rem 0.75rem;  /* 调整padding以适应空间 */
        font-size: 0.9rem;  /* 稍微缩小字体 */
    }
}

.quick-input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(173, 216, 230, 0.3);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.quick-input-field:focus {
    outline: none;
    border-color: rgba(173, 216, 230, 0.6);
    box-shadow: 0 0 0 3px rgba(173, 216, 230, 0.1);
}

/* 最近添加的知识点 */
.recent-interests-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.recent-interests-header {
    margin-bottom: 0.75rem;
}

.recent-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.recent-interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recent-interest-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(173, 216, 230, 0.15);
    border: 1px solid rgba(173, 216, 230, 0.3);
    border-radius: 1rem;
    font-size: 0.85rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.recent-interest-tag:hover {
    background: rgba(173, 216, 230, 0.25);
    border-color: rgba(173, 216, 230, 0.5);
    transform: translateY(-1px);
    color: #1a252f;
}

.recent-loading {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-size: 0.85rem;
}

.recent-loading i {
    margin-right: 0.5rem;
}

.recent-interests-empty {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-size: 0.85rem;
}

/* 候选知识点区域 */
.quick-candidates-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.candidates-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quick-candidate-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(173, 216, 230, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.quick-candidate-item:hover {
    border-color: rgba(173, 216, 230, 0.5);
    background: rgba(173, 216, 230, 0.05);
}

.quick-candidate-item.from-similar {
    border-left: 3px solid #667eea;
}

.candidate-content {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.candidate-checkbox {
    margin-top: 0.25rem;
    cursor: pointer;
}

.candidate-label {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
}

.candidate-title {
    color: #2c3e50;
    font-size: 0.95rem;
}

.candidate-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

.quick-batch-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}



.quick-input-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.quick-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.12);
}

.quick-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.quick-add-btn {
    color: #28a745;
}

.quick-add-btn:hover:not(:disabled) {
    background: rgba(40, 167, 69, 0.05);
    border-color: rgba(40, 167, 69, 0.2);
    color: #2c3e50;
}

.quick-subdivide-btn {
    color: #0d6efd;
}

.quick-subdivide-btn:hover:not(:disabled) {
    background: rgba(13, 110, 253, 0.05);
    border-color: rgba(13, 110, 253, 0.2);
}

/* 相似知识按钮样式 */
.quick-similar-btn {
    color: #6610f2;
}

.quick-similar-btn:hover:not(:disabled) {
    background: rgba(102, 16, 242, 0.05);
    border-color: rgba(102, 16, 242, 0.2);
}

/* 深度搜索按钮样式 - 特别突出 */
.quick-investigate-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(30, 60, 114, 0.5);
    position: relative;
    overflow: hidden;
}

.quick-investigate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.quick-investigate-btn:hover:not(:disabled)::before {
    left: 100%;
}

.quick-investigate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0f1e3a 0%, #1e3c72 50%, #0f1e3a 100%);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.6);
    transform: translateY(-3px);
    border: none;
    color: #ffffff;
}

/* 智能调查结果区域 */
.investigation-results-section {
    margin-top: 1rem;
    min-height: 600px; /* 从500px增加到600px */
    animation: slideIn 0.3s ease-out;
}

/* 新知识点区域样式 */
.investigation-kp-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    min-height: 600px; /* 从500px增加到600px */
    display: flex;
    flex-direction: column;
}

.investigation-kp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.investigation-kp-header h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.investigation-kp-header .btn-link {
    color: #dc3545;
    font-size: 1rem;
}

.investigation-kp-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* PC端两列布局 */
    gap: 0.75rem;
    flex: 1;
    align-content: start; /* 防止行被拉伸分配导致行间距过大 */
    align-items: start;  /* 防止卡片被拉伸对齐 */
    /* 移除高度限制，让内容自然展开 */
    /* overflow-y: auto; */
    /* max-height: 560px; */
}

/* 知识细分全宽时，三列显示 */
.investigation-kp-list.full-width {
    grid-template-columns: repeat(3, 1fr);
}

/* 响应式：小屏幕改为单列 */
@media (max-width: 992px) {
    .investigation-kp-list,
    .investigation-kp-list.full-width {
        grid-template-columns: 1fr !important;  /* 手机端强制单列 */
    }
}

.investigation-kp-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 8px;
    padding: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.investigation-kp-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.investigation-kp-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.investigation-kp-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
    flex: 1;
}

.investigation-kp-add-btn {
    align-self: flex-end;
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    color: #28a745;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.investigation-kp-add-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: rgba(40, 167, 69, 0.05);
    border-color: rgba(40, 167, 69, 0.2);
    color: #2c3e50;
}

.investigation-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: #adb5bd;
}

.investigation-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 响应式：小屏幕改为单列 */
@media (max-width: 992px) {
    .investigation-kp-list {
        grid-template-columns: 1fr;
    }
}

/* 调查总结区域样式 */
.investigation-summary-section {
    height: auto; /* 改为自适应高度 */
    min-height: auto; /* 移除最小高度 */
}

.investigation-summary {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(30, 60, 114, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.08);
    height: auto; /* 改为自适应高度 */
}

.investigation-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

.investigation-summary-header:hover {
    opacity: 0.8;
}

.summary-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1e3c72;
    font-size: 1.1rem;
}

.summary-toggle-icon {
    color: #1e3c72;
    transition: transform 0.3s ease;
}

.summary-toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.investigation-summary-content {
    color: #4b5563;
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 1rem;
    max-height: none; /* 移除最大高度限制 */
    overflow-y: visible; /* 移除滚动条 */
    padding-right: 0.5rem;
}

/* Markdown样式 */
.investigation-summary-content h1,
.investigation-summary-content h2,
.investigation-summary-content h3,
.investigation-summary-content h4,
.investigation-summary-content h5,
.investigation-summary-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.investigation-summary-content h1 {
    font-size: 1.5rem;
}

.investigation-summary-content h2 {
    font-size: 1.3rem;
}

.investigation-summary-content h3 {
    font-size: 1.1rem;
}

.investigation-summary-content p {
    margin-bottom: 1rem;
}

.investigation-summary-content ul,
.investigation-summary-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.investigation-summary-content li {
    margin-bottom: 0.5rem;
}

.investigation-summary-content code {
    background-color: rgba(30, 60, 114, 0.08);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #1e3c72;
}

.investigation-summary-content pre {
    background-color: rgba(248, 249, 250, 0.95);
    border: 1px solid rgba(30, 60, 114, 0.1);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.investigation-summary-content pre code {
    background-color: transparent;
    padding: 0;
}

.investigation-summary-content blockquote {
    border-left: 3px solid #2a5298;
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: #6b7280;
    font-style: italic;
}

.investigation-summary-content strong {
    font-weight: 600;
    color: #1f2937;
}

.investigation-summary-content em {
    font-style: italic;
}

.investigation-summary-content a {
    color: #1e3c72;
    text-decoration: none;
}

.investigation-summary-content a:hover {
    text-decoration: underline;
    color: #2a5298;
}

.investigation-summary-content hr {
    border: none;
    border-top: 1px solid rgba(30, 60, 114, 0.15);
    margin: 1.5rem 0;
}

.investigation-sources {
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 60, 114, 0.1);
}

.sources-title {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.investigation-source-link {
    color: #2a5298;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.investigation-source-link:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* 来源链接的favicon图标 */
.source-favicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.source-fallback-icon {
    font-size: 0.85em;
}

.source-title {
    display: inline;
}

/* 进度提示样式 */
.investigation-progress {
    text-align: center;
    padding: 2rem;
    color: #667eea;
}

.investigation-progress-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 1.5s ease-in-out infinite;
}

.investigation-progress-text {
    font-size: 1rem;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* 深度搜索加载动画 */
.investigation-loading {
    margin: 1.5rem 0;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.loading-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50, #1e3c72, #2a5298);
    animation: bounce 1.4s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.4);
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2c3e50, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    40% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 知识点来自调查的标记 */
.quick-candidate-item.from-investigation {
    border-left: 3px solid #667eea;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05), transparent);
}


.quick-candidates-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-candidates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.candidates-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.quick-clear-btn {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-clear-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.quick-candidates-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0.5rem;
}

.quick-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.quick-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 0.85rem;
}

.quick-candidate-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.quick-candidate-item:hover {
    border-color: rgba(173, 216, 230, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-candidate-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.quick-candidate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quick-candidate-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    display: block;
}

.quick-candidate-desc {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
    display: block;
}

.quick-batch-actions {
    margin-top: 0.75rem;
    text-align: center;
}

.quick-batch-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(102, 126, 234, 0.8));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.quick-batch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* 滚动条样式 */
.quick-candidates-list::-webkit-scrollbar {
    width: 6px;
}

.quick-candidates-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.quick-candidates-list::-webkit-scrollbar-thumb {
    background: rgba(173, 216, 230, 0.5);
    border-radius: 3px;
}

.quick-candidates-list::-webkit-scrollbar-thumb:hover {
    background: rgba(173, 216, 230, 0.8);
}

/* 知识节点显示区域样式 */
.quick-interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 0.5rem;
}

.quick-interest-badge {
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.2), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(173, 216, 230, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-interest-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(173, 216, 230, 0.3);
    border-color: rgba(173, 216, 230, 0.5);
}

.quick-interest-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quick-loading-state,
.quick-empty-interests {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.quick-loading-state i,
.quick-empty-interests i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.loading-text {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================================================
   移动端响应式样式
   ============================================================================ */

/* 小屏幕（手机）- 按钮分成两行显示 */
@media (max-width: 767px) {
    .quick-input-actions {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 两列布局 */
        gap: 0.5rem;
    }
    
    .quick-btn {
        flex: unset; /* 取消flex布局 */
        width: 100%; /* 占满网格单元格 */
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* 超小屏幕 - 进一步优化 */
@media (max-width: 480px) {
    .quick-btn {
        padding: 0.7rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .quick-btn i {
        font-size: 0.85rem;
    }
}

/* ==================== 渐进式加载动画 ==================== */

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* 滑入动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* 淡出动画 */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

/* 骨架屏加载动画 */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 搜索占位符样式 */
.search-placeholder {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px dashed #d0d0d0;
    border-radius: 8px;
    background-color: #fafafa;
}

.search-placeholder .placeholder-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 1rem;
}

.search-placeholder .placeholder-header i {
    color: #007bff;
}

.search-placeholder .skeleton-line {
    height: 12px;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.search-placeholder .skeleton-line.short {
    width: 60%;
}

/* 加载点动画 */
.loading-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #007bff;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}