/**
 * Demo 1: Barocal Project Evaluation - Styles
 * 涓撳閫夋嫨鐣岄潰鏍峰紡
 */

/* ========== 鎺ユ敹璧勬枡鍗＄墖 ========== */
.received-materials-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.received-materials-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.received-materials-card .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.received-materials-card .header-left h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.received-materials-card .source-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.received-materials-card .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.received-materials-card .pre-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.received-materials-card .score-number {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.received-materials-card .score-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.received-materials-card .recommendation-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.received-materials-card .card-body {
    padding: 24px;
}

.stage-header p {
    color: #3f546d;
}

.stage-action-center .action-hint {
    color: #3f5268;
}

/* Stage 0 workflow context from annotation requirements */
.handoff-context-card {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
    border: 1px solid #d8e6ff;
}

.handoff-context-card .context-title {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1f4d8a;
}

.handoff-context-card .context-detail {
    margin: 0 0 14px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #254b75;
}

.workflow-steps {
    display: grid;
    gap: 8px;
}

.workflow-step-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #dbe7f8;
}

.workflow-step-item .step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #e4efff;
    color: #265ea8;
}

.workflow-step-item .step-text {
    font-size: 13px;
    color: #334e6d;
    line-height: 1.45;
}

/* 椤圭洰淇℃伅閮ㄥ垎 */
.project-info-section {
    margin-bottom: 24px;
}

.project-info-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    gap: 8px;
}

.info-item .label {
    font-weight: 500;
    color: #666;
}

.info-item .value {
    color: #333;
}

/* 瀹屾暣鎬ф鏌?*/
.completeness-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.completeness-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.confirmation-banner {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid transparent;
}

.confirmation-banner.complete {
    background: #e9f9ef;
    border-color: #b7ebc8;
    color: #1d7a39;
}

.confirmation-banner.incomplete {
    background: #fff4e8;
    border-color: #ffd4ad;
    color: #a85d13;
}

.completeness-list {
    display: grid;
    gap: 8px;
}

.completeness-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.completeness-item.incomplete {
    border-left-color: #dc3545;
    opacity: 0.6;
}

.completeness-item .check-icon {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.completeness-item.incomplete .check-icon {
    color: #dc3545;
}

.completeness-item .item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.completeness-item .status-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* 璇勪及鎽樿 */
.summary-section {
    margin-bottom: 24px;
}

.summary-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495769;
    margin-bottom: 8px;
}

.summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #eaf1ff;
    border: 1px solid #d0def9;
    font-size: 14px;
}

.summary-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-score .score-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.summary-score .score-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.summary-score .score-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.simple-question-section {
    margin-top: 8px;
    padding: 16px;
    border-radius: 8px;
    background: #f3f8ff;
    border: 1px solid #d8e5f5;
}

.simple-question-section h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2f4e6f;
}

.simple-question-section .question-intro {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #3d546e;
}

.simple-question-list {
    margin: 0;
    padding-left: 20px;
}

.simple-question-item {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #233a52;
}

/* 寤鸿閮ㄥ垎 */
.recommendations-section {
    padding: 16px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.recommendations-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #856404;
}

.recommendation-intro {
    font-size: 14px;
    color: #856404;
    margin-bottom: 12px;
    line-height: 1.5;
}

.recommendations-list {
    margin: 0;
    padding-left: 20px;
}

.recommendations-list li {
    font-size: 14px;
    color: #856404;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ========== 閫夋嫨鎽樿鍗＄墖 ========== */
.selection-summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
    border: 2px solid #667eea;
    overflow: hidden;
}

.selection-summary-card .summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.selection-summary-card .summary-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.selection-summary-card .total-cost {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.selection-summary-card .cost-label {
    font-size: 14px;
    opacity: 0.9;
}

.selection-summary-card .cost-value {
    font-size: 28px;
    font-weight: 700;
}

.selection-summary-card .cost-value.pulse {
    animation: pulse 0.6s ease;
}

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

.selection-summary-card .summary-body {
    padding: 20px;
}

.selected-experts-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-expert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.summary-expert-item.internal {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
}

.summary-expert-item.external {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
}

.summary-expert-item.empty {
    border-left-color: #dc3545;
    background: #fff5f5;
    opacity: 0.7;
}

.summary-expert-item .role-label {
    font-weight: 700;
    color: #1a1a1a;
    min-width: 120px;
}

.summary-expert-item.internal .role-label {
    color: #155724;
}

.summary-expert-item.external .role-label {
    color: #856404;
}

.summary-expert-item .expert-name {
    flex: 1;
    color: #212529;
    font-weight: 500;
}

.summary-expert-item.internal .expert-name {
    color: #1e7e34;
}

.summary-expert-item.external .expert-name {
    color: #9c6d0a;
}

.summary-expert-item .expert-type-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #e7efff;
    color: #2f4f8f;
}

.summary-expert-item.internal .expert-type-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.summary-expert-item.external .expert-type-badge {
    background: #fff1d6;
    color: #8a5a00;
}

.summary-expert-item .expert-cost {
    font-weight: 700;
    color: #304f8c;
    font-size: 16px;
}

.ai-recommendation-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.ai-recommendation-note .icon {
    font-size: 20px;
}

.ai-recommendation-note span:last-child {
    font-size: 14px;
    color: #003d77;
    line-height: 1.5;
}

/* ========== 涓撳姹犻儴鍒?========== */
.expert-pool-section {
    margin-bottom: 32px;
}

.expert-pool-section .pool-header {
    margin-bottom: 16px;
}

.expert-pool-section .pool-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #22344d;
    margin-bottom: 4px;
}

.expert-pool-section .pool-header p {
    font-size: 14px;
    color: #425a77;
    margin: 0;
}

.expert-pool-section.external-pool {
    padding-top: 24px;
    border-top: 2px dashed #dee2e6;
}

/* ========== 涓撳鍗＄墖锛堝寮虹増锛?========== */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.expert-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.expert-card:hover::before {
    opacity: 1;
}

.expert-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.expert-card.internal {
    border-color: #c3e6cb;
}

.expert-card.internal:hover {
    border-color: #28a745;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
}

.expert-card.external {
    border-color: #ffeaa7;
}

.expert-card.external:hover {
    border-color: #ffc107;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

.expert-card.selected {
    border-color: #4d74ff;
    box-shadow:
        0 0 0 2px rgba(77, 116, 255, 0.28),
        0 0 26px rgba(77, 116, 255, 0.35),
        0 10px 28px rgba(77, 116, 255, 0.25);
    transform: translateY(-3px);
}

.expert-card.selected .expert-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.expert-card.selection-pop {
    animation: expertSelectionGlow 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes expertSelectionGlow {
    0% {
        box-shadow:
            0 0 0 2px rgba(77, 116, 255, 0.26),
            0 0 18px rgba(77, 116, 255, 0.22),
            0 8px 22px rgba(77, 116, 255, 0.2);
        transform: translateY(-2px) scale(1);
    }
    45% {
        box-shadow:
            0 0 0 3px rgba(77, 116, 255, 0.42),
            0 0 36px rgba(77, 116, 255, 0.52),
            0 14px 34px rgba(77, 116, 255, 0.32);
        transform: translateY(-5px) scale(1.015);
    }
    100% {
        box-shadow:
            0 0 0 2px rgba(77, 116, 255, 0.28),
            0 0 26px rgba(77, 116, 255, 0.35),
            0 10px 28px rgba(77, 116, 255, 0.25);
        transform: translateY(-3px) scale(1);
    }
}

.expert-card-header {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.expert-card.internal .expert-card-header {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border-left: 4px solid #28a745;
}

.expert-card.external .expert-card-header {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid #ffc107;
}

/* 澶嶉€夋瀹瑰櫒 - 纭繚涓嶈閬尅 */
.checkbox-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

/* 澶村儚 */
.expert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e8efff;
    color: #1f3f72;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expert-card.selected .expert-avatar {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.expert-card.internal .expert-avatar {
    background: #c3e6cb;
}

.expert-card.external .expert-avatar {
    background: #ffeaa7;
}

/* 鍩烘湰淇℃伅瀹瑰櫒 - 鍗犳嵁鍓╀綑绌洪棿 */
.expert-basic-info {
    flex: 1;
    min-width: 150px;
}

/* 寰界珷瀹瑰櫒 - 瀹屾暣瀹藉害锛屾崲琛屾樉绀?*/
.expert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
    order: 10;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    z-index: 2;
}

.checkbox-wrapper label {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + label {
    background: #ffffff;
    border-color: #667eea;
}

.checkbox-wrapper input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 8px;
    width: 6px;
    height: 12px;
    border: solid #667eea;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.expert-card.selected .checkbox-wrapper label {
    background: white;
    border-color: white;
}

.expert-card.selected .checkbox-wrapper input[type="checkbox"]:checked + label {
    background: white;
    border-color: #667eea;
}

.expert-card.selected .checkbox-wrapper input[type="checkbox"]:checked + label::after {
    border-color: #667eea;
}

.expert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e8efff;
    color: #1f3f72;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expert-card.selected .expert-avatar {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.expert-card.internal .expert-avatar {
    background: #c3e6cb;
}

.expert-card.external .expert-avatar {
    background: #ffeaa7;
}

.expert-basic-info {
    flex: 1;
    min-width: 150px;
}

.expert-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.expert-card.selected .expert-name {
    color: white;
}

.expert-card.internal .expert-name {
    color: #155724;
}

.expert-card.external .expert-name {
    color: #856404;
}

.expert-role {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.expert-card.selected .expert-role {
    color: rgba(255, 255, 255, 0.96);
}

.expert-card.internal .expert-role {
    color: #1e7e34;
}

.expert-card.external .expert-role {
    color: #9c6d0a;
}

.expert-department {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
}

.expert-card.selected .expert-department {
    color: rgba(255, 255, 255, 0.9);
}

.expert-card.internal .expert-department {
    color: #28a745;
}

.expert-card.external .expert-department {
    color: #d39e00;
}

.expert-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.expert-badges .badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expert-badges .badge.ai-recommended {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.expert-badges .badge.match-score {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

.expert-card.selected .expert-badges .badge.match-score {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.expert-card.internal .expert-badges .badge.match-score {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
    border-color: #28a745;
}

.expert-card.external .expert-badges .badge.match-score {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border-color: #ffc107;
}

.expert-card-body {
    padding: 16px;
}

/* Enhanced transition card visuals */
.agent-demo-pipeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.agent-demo-pipeline-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dce8fc;
    background: #ffffff;
    border-radius: 10px;
    opacity: 0.75;
    transform: translateY(2px);
    transition: all 0.25s ease;
}

.agent-demo-pipeline-node .node-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.agent-demo-pipeline-node .node-label {
    font-size: 12px;
    font-weight: 600;
    color: #355b84;
}

.agent-demo-pipeline-node.active {
    opacity: 1;
    transform: translateY(0);
    border-color: #8cb6ff;
    box-shadow: 0 4px 10px rgba(45, 140, 255, 0.2);
}

.agent-demo-pipeline-node.done {
    opacity: 1;
    border-color: #98c6ff;
    background: #f6faff;
}

.agent-demo-pipeline-link {
    position: relative;
    width: 36px;
    height: 2px;
    background: #d2def3;
    border-radius: 999px;
    overflow: hidden;
}

.agent-demo-pipeline-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(45, 140, 255, 0), rgba(45, 140, 255, 0.9));
    transition: left 0.28s ease;
}

.agent-demo-pipeline-link.done::after {
    left: 0;
}

.agent-demo-progress-item.active {
    opacity: 1;
    transform: translateX(0);
    border-color: #7fb3ff;
    box-shadow: 0 4px 12px rgba(45, 140, 255, 0.2);
}

.agent-demo-progress-item.active .agent-demo-dot {
    background: #2d8cff;
    box-shadow: 0 0 0 3px rgba(45, 140, 255, 0.24);
}

.transition-trace {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Keep section switches snappy in Demo 1 */
#view-demo-barocal .stage-content {
    animation-duration: 0.52s;
    animation-timing-function: ease-out;
}

/* Compact transition used by non-core stage handoffs */
.demo1-quick-transition {
    padding-bottom: 8px;
}

.demo1-quick-transition-body {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.demo1-quick-line {
    border-radius: 10px;
    border: 1px solid #dbe7fb;
    background: #fff;
    color: #2e5077;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.4;
}

.demo1-quick-line.detail {
    color: #4d6a8f;
    background: #f8fbff;
}

/* Dedicated Stage 1 -> Stage 2 matching-algorithm animation */
.demo1-algo-transition .agent-demo-progress-item {
    opacity: 0.72;
}

.demo1-match-scene {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #dce8fc;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.demo1-match-scene .scene-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border: 1px solid #d6e4fb;
    border-radius: 10px;
    background: #fff;
    min-height: 74px;
    justify-content: center;
    transition: all 0.56s ease;
}

.demo1-match-scene .scene-node .node-icon {
    font-size: 18px;
    line-height: 1;
}

.demo1-match-scene .scene-node .node-text {
    font-size: 11px;
    font-weight: 600;
    color: #355b84;
    text-align: center;
    line-height: 1.25;
}

.demo1-match-scene .scene-arrow {
    font-size: 18px;
    color: #8aa7cc;
    font-weight: 700;
    transition: color 0.4s ease, transform 0.4s ease;
}

.demo1-match-scene .scene-magnifier {
    position: absolute;
    top: 18px;
    left: 50%;
    font-size: 20px;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.demo1-match-scene .scene-expert-cloud {
    grid-column: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.48s ease, transform 0.48s ease;
}

.demo1-match-scene .expert-chip {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #1f4f87;
    border: 1px solid #c5dbff;
    background: #ffffff;
    opacity: 0;
    transform: translateY(4px) scale(0.92);
}

.demo1-match-scene.step-1 .node-doc,
.demo1-match-scene.step-2 .node-db,
.demo1-match-scene.step-4 .node-results {
    border-color: #86b4ff;
    box-shadow: 0 5px 14px rgba(45, 140, 255, 0.22);
    transform: translateY(-2px);
}

.demo1-match-scene.step-1 .arrow-doc-db,
.demo1-match-scene.step-3 .arrow-db-out,
.demo1-match-scene.step-4 .arrow-db-out {
    color: #2d8cff;
    transform: translateX(2px);
}

.demo1-match-scene.step-3 .scene-magnifier,
.demo1-match-scene.step-4 .scene-magnifier {
    opacity: 1;
    transform: translate(-50%, 0);
    animation: demo1MagnifierScan 1.2s ease-in-out infinite;
}

@keyframes demo1MagnifierScan {
    0% {
        left: 50%;
    }
    50% {
        left: 51.25%;
    }
    100% {
        left: 50%;
    }
}

.demo1-match-scene.step-4 .scene-expert-cloud {
    opacity: 1;
    transform: translateY(0);
}

.demo1-match-scene.step-4 .expert-chip {
    animation: demo1ExpertChipIn 0.72s ease forwards;
}

.demo1-match-scene.step-4 .expert-chip:nth-child(2) {
    animation-delay: 0.1s;
}

.demo1-match-scene.step-4 .expert-chip:nth-child(3) {
    animation-delay: 0.2s;
}

.demo1-match-scene.step-4 .expert-chip:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes demo1ExpertChipIn {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.demo1-manual-continue {
    margin-top: 16px;
}

.demo1-manual-continue .action-hint {
    margin-top: 8px;
}

.expert-detail-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.expert-detail-row .label {
    font-weight: 500;
    color: #666;
    min-width: 90px;
}

.expert-detail-row .value {
    flex: 1;
    color: #333;
    line-height: 1.5;
}

.expert-detail-row.highlight {
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid #dee2e6;
}

.expert-detail-row.highlight .value.cost {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.expert-card.internal .expert-detail-row.highlight {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.expert-card.internal .expert-detail-row.highlight .value.cost {
    color: #28a745;
}

.expert-card.external .expert-detail-row.highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.expert-card.external .expert-detail-row.highlight .value.cost {
    color: #d39e00;
}

.expert-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.expert-stats .stat {
    text-align: center;
}

.expert-stats .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.expert-stats .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
}

/* ========== 鍝嶅簲寮忚璁?========== */
@media (max-width: 768px) {
    .experts-grid {
        grid-template-columns: 1fr;
    }

    .agent-demo-pipeline {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .agent-demo-pipeline-link {
        display: none;
    }

    .demo1-match-scene {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 14px;
    }

    .demo1-match-scene .scene-arrow {
        display: none;
    }

    .demo1-match-scene .scene-expert-cloud {
        grid-column: 1;
        justify-content: flex-start;
    }

    .demo1-match-scene .scene-magnifier {
        left: auto;
        right: 12px;
        top: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .received-materials-card .card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .received-materials-card .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .selection-summary-card .summary-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}


/* ========== 闃舵3锛氫笓瀹跺搷搴?========== */
.expert-responses-container {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.expert-response-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ccc;
    transition: all 0.3s ease;
}

.expert-response-card.accepted {
    border-left-color: #28a745;
    background: #f0f9f4;
}

.expert-response-card.internal.accepted {
    border-left-color: #28a745;
    background: #f0f9f4;
}

.expert-response-card.external.accepted {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.expert-response-card.accepted-adjusted {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.expert-response-card.pending {
    border-left-color: #6c757d;
    opacity: 0.7;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
}

.expert-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expert-info .expert-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e8efff;
    color: #1f3f72;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.expert-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.expert-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #465c74;
}

.response-status {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.response-status.accepted {
    background: #28a745;
    color: white;
}

.expert-response-card.external .response-status.accepted {
    background: #ffc107;
    color: #5a3a00;
}

.response-status.accepted_with_adjustment {
    background: #ffc107;
    color: #5a3a00;
}

.response-status.pending {
    background: #6c757d;
    color: white;
}

.response-body {
    padding: 16px 20px;
}

.expert-details {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.expert-details .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expert-details .label {
    font-size: 12px;
    color: #506174;
}

.expert-details .value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.expert-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 12px;
}

.message-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f2ff;
    border: 1px solid #d2e3ff;
    color: #2f5ea2;
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-style: italic;
    line-height: 1.5;
}

.response-summary {
    display: flex;
    justify-content: space-around;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 24px;
}

.summary-stat {
    text-align: center;
}

.summary-stat .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.summary-stat .stat-label {
    display: block;
    font-size: 14px;
    color: #4a5c70;
}

/* ========== 闃舵4锛氫笓瀹跺鏍歌繘搴?========== */
.header-with-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.header-with-status h3 {
    margin: 0;
}

.status-badge-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge-compact.completed {
    background: #22c55e;
    color: white;
}

.expert-reports-container {
    margin-bottom: 32px;
}

.expert-reports-container h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.report-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.report-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.report-score {
    font-size: 24px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}

.report-score.score-5 {
    background: #28a745;
    color: white;
}

.report-score.score-4 {
    background: #17a2b8;
    color: white;
}

.report-score.score-3 {
    background: #ffc107;
    color: #333;
}

.report-body {
    padding: 16px;
}

.report-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.report-detail .label {
    color: #666;
}

.report-detail .value {
    color: #333;
    font-weight: 500;
}

.report-conclusion {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.report-conclusion .label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.report-conclusion p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.joint-review-section {
    margin-bottom: 32px;
}

.joint-review-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.meeting-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.meeting-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item .label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.info-item .value {
    font-size: 14px;
    color: #333;
}

.meeting-discussions {
    margin-bottom: 24px;
}

.meeting-discussions h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.discussion-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.discussion-topic {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.discussion-presenter {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.discussion-conclusion {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.meeting-vote h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.vote-result {
    padding: 16px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.vote-recommendation {
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 12px;
}

.vote-details {
    margin-bottom: 12px;
}

.vote-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #333;
}

.vote-conditions {
    margin-top: 12px;
}

.vote-conditions strong {
    font-size: 14px;
    color: #333;
}

.vote-conditions ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.vote-conditions li {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ========== 闃舵5锛欰I缁煎悎鍒嗘瀽 ========== */
.analysis-summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.analysis-summary-card .summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.analysis-summary-card .summary-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.recommendation-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.recommendation-badge.success {
    background: #28a745;
    color: white;
}

.analysis-summary-card .summary-body {
    padding: 24px;
}

.recommendation-details {
    display: grid;
    gap: 16px;
}

.recommendation-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.recommendation-details .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.recommendation-details .value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.recommendation-details .score-large {
    font-size: 32px;
    color: #667eea;
}

.consensus-analysis-section {
    margin-bottom: 32px;
}

.consensus-analysis-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.consensus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.consensus-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.consensus-card h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.consensus-card.high-consensus {
    border-left: 4px solid #28a745;
}

.consensus-card.high-consensus h5 {
    color: #28a745;
}

.consensus-card.partial-consensus {
    border-left: 4px solid #ffc107;
}

.consensus-card.partial-consensus h5 {
    color: #8a5a00;
}

.consensus-card.divergent-views {
    border-left: 4px solid #dc3545;
}

.consensus-card.divergent-views h5 {
    color: #dc3545;
}

.consensus-card ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.consensus-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.li-icon {
    color: #5f79a0;
    font-weight: 700;
}

.risk-chain-section {
    margin-bottom: 32px;
}

.risk-chain-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.risk-chains {
    display: grid;
    gap: 16px;
}

.risk-chain-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.risk-chain-card.primary {
    border-left: 4px solid #dc3545;
}

.risk-chain-card.secondary {
    border-left: 4px solid #ffc107;
}

.risk-chain-card h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.risk-chain {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 12px;
}

.risk-chain-icon {
    font-size: 14px;
    line-height: 1;
}

.risk-analysis {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
}

.mitigation {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mitigation strong {
    font-size: 14px;
    color: #333;
}

.mitigation ul {
    margin: 8px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.mitigation li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.5;
}

.conditions-section {
    margin-bottom: 32px;
}

.conditions-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.conditions-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 20px 20px 40px;
    margin: 0;
}

.conditions-list li {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ========== 闃舵6锛氭渶缁堟姤鍛?========== */
.final-report-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.final-report-card .report-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.final-report-card .report-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

.report-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    opacity: 0.9;
}

.report-summary {
    padding: 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.report-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.report-summary .summary-item:last-child {
    border-bottom: none;
}

.report-summary .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.report-summary .value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.report-summary .value.bonus {
    color: #28a745;
}

.deliverables-section {
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.deliverables-section h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.deliverables-list {
    margin: 0;
    padding-left: 20px;
}

.deliverables-list li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.expert-ratings-section {
    padding: 24px;
}

.expert-ratings-section h5 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-item .expert-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.rating-stars {
    font-size: 18px;
    margin-bottom: 4px;
}

.rating-value {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.completion-message {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.completion-message h4 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    color: #28a745;
}

.completion-message p {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.btn-secondary {
    padding: 12px 24px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* ========== 鍝嶅簲寮忚璁★紙鏂伴樁娈碉級========== */
@media (max-width: 768px) {
    .progress-overview {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .consensus-grid {
        grid-template-columns: 1fr;
    }
    
    .ratings-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .response-summary {
        flex-direction: column;
        gap: 16px;
    }
}

