/* journal-matcher.css - AI智能期刊匹配助手样式 - Logo蓝色系配色 */

/* Hero区域 - 蓝色渐变 */
.matcher-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0d9488 100%);
    padding: 60px 0 80px;
    color: white;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-badge i {
    font-size: 16px;
}

.matcher-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.matcher-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.hero-feature i {
    font-size: 20px;
    opacity: 0.9;
}

/* 表单区域 */
.matcher-form-section {
    padding: 60px 0;
    background: #f8fafc;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #2d50e2 0%, #4a67e8 100%);
    padding: 24px 32px;
    border-bottom: 1px solid #2d50e2;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.step.active {
    color: #2d50e2;
}

.step-num {
    width: 28px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.step.active .step-num {
    background: #2d50e2;
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
}

.matcher-form {
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-num {
    width: 20px;
    height: 20px;
    background: #2d50e2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select {
    padding: 20px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    color: #64748b;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d50e2;
    box-shadow: 0 0 0 3px rgba(45, 80, 226, 0.1);
}

/* 补充信息 */
.form-extra {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px dashed #e2e8f0;
}

.form-extra h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-extra h4 i {
    color: #2d50e2;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 提交按钮 */
.form-submit {
    margin-top: 32px;
    text-align: center;
}

.form-submit .btn {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2d50e2 0%, #4a67e8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit .btn:hover {
    background: linear-gradient(135deg, #4a67e8 0%, #2d50e2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 226, 0.3);
}

.form-submit .btn i {
    font-size: 20px;
}

.submit-note {
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.submit-note i {
    color: #f59e0b;
}

/* 匹配结果区域 */
.matcher-results {
    padding: 60px 0;
    background: #f8fafc;
}

.matcher-results .section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-title {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 24px 40px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.results-title i {
    font-size: 40px;
    color: #10b981;
}

.results-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.results-title p {
    font-size: 14px;
    color: #64748b;
}

/* 期刊卡片 */
.journal-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.journal-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
}

/* 推荐级别样式 */
.journal-card.strong-recommend {
    border-color: #dc2626;
}

.journal-card.best-recommend {
    border-color: #2d50e2;
}

.journal-card.good-recommend {
    border-color: #10b981;
}

.journal-card.normal-recommend {
    border-color: #f59e0b;
}

.card-badge {
    position: absolute;
    top: 0;
    right: 24px;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    z-index: 10;
}

/* 强烈推荐 - 红色 */
.card-badge.strong {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* 最优推荐 - 蓝色 */
.card-badge.best {
    background: linear-gradient(135deg, #2d50e2 0%, #4a67e8 100%);
}

/* 比较推荐 - 绿色 */
.card-badge.good {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 一般推荐 - 橙色 */
.card-badge.normal {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.journal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.journal-tags .tag {
    padding: 4px 12px;
    background: rgba(45, 80, 226, 0.1);
    color: #2d50e2;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}

.journal-tags .tag-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.card-header-content {
    flex: 1;
}

.card-body {
    padding: 20px 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-label i {
    color: #2d50e2;
    width: 16px;
}

.info-value {
    color: #374151;
    font-weight: 500;
    text-align: right;
}

.match-reason,
.match-warning {
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
}

.match-reason {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.match-reason strong {
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.match-reason strong i {
    color: #2d50e2;
}

.match-reason p {
    color: #0c4a6e;
    line-height: 1.6;
    margin: 0;
}

.match-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.match-warning strong {
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.match-warning strong i {
    color: #f59e0b;
}

.match-warning p {
    color: #92400e;
    line-height: 1.6;
    margin: 0;
}

.card-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.card-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-footer .btn-primary {
    background: linear-gradient(135deg, #2d50e2 0%, #4a67e8 100%);
    color: white;
    border: none;
}

.card-footer .btn-primary:hover {
    background: linear-gradient(135deg, #4a67e8 0%, #2d50e2 100%);
}

.card-footer .btn-secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.card-footer .btn-secondary:hover {
    background: #f0f9ff;
    color: #2d50e2;
    border-color: #2d50e2;
}

/* 结果底部 */
.results-footer {
    max-width: 1000px;
    margin: 40px auto 0;
}

.advice-box {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.advice-box > div {
    flex: 1;
    min-width: 0;
}

.advice-box i {
    font-size: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}

.advice-box strong {
    font-size: 15px;
    color: #1e293b;
    display: block;
    margin-bottom: 6px;
}

.advice-box p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.disclaimer {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.disclaimer > p {
    flex: 1;
    min-width: 0;
}

.disclaimer i {
    font-size: 18px;
    color: #64748b;
    flex-shrink: 0;
}

.disclaimer p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.disclaimer strong {
    color: #475569;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.results-actions .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.results-actions .btn-ghost {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.results-actions .btn-ghost:hover {
    background: #f0f9ff;
    color: #2d50e2;
    border-color: #2d50e2;
}

.results-actions .btn-primary {
    background: linear-gradient(135deg, #2d50e2 0%, #4a67e8 100%);
    color: white;
}

.results-actions .btn-primary:hover {
    background: linear-gradient(135deg, #4a67e8 0%, #2d50e2 100%);
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0ea5e9;
}

.breadcrumb-separator {
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb-current {
    color: #1e293b;
    font-weight: 500;
}

/* AI分析弹窗 - 浮动层 */
.ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.ai-modal.active {
    display: flex;
}

.ai-modal-content {
    background: white;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ai-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
}

.ai-brain {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2d50e2 0%, #4a67e8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: aiPulse 1.5s ease-in-out infinite;
}

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

.ai-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(45, 80, 226, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
}

.ai-pulse-2 {
    animation-delay: 1s;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.ai-status-text {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.ai-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: hidden;
}

.ai-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2d50e2 0%, #4a67e8 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ai-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-step {
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-step.active {
    background: linear-gradient(135deg, #2d50e2 0%, #4a67e8 100%);
    color: white;
}

.ai-step.completed {
    background: #10b981;
    color: white;
}

.ai-step i {
    font-size: 14px;
}

/* 期刊封面样式 */
.journal-cover {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d50e2;
    font-size: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* 匹配分数样式 - 右上角 */
.match-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.match-score i {
    font-size: 11px;
}

/* 多选下拉框样式 */
.multi-select-container {
    position: relative;
    width: 100%;
}

.multi-select-input {
    width: 100%;
    padding: 20px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-select-input:focus {
    outline: none;
    border-color: #2d50e2;
    box-shadow: 0 0 0 3px rgba(45, 80, 226, 0.1);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.multi-select-dropdown.active {
    display: block;
}

.multi-select-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.multi-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.multi-select-search input:focus {
    outline: none;
    border-color: #2d50e2;
    box-shadow: 0 0 0 3px rgba(45, 80, 226, 0.1);
}

.multi-select-options {
    padding: 8px 0;
}

.multi-select-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.multi-select-option:hover {
    background-color: #f8f9fa;
}

.multi-select-option input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
}

.multi-select-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: #374151;
}

/* 响应式 */
@media (max-width: 768px) {
    .matcher-hero h1 {
        font-size: 28px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-grid,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .step-line {
        display: none;
    }
    
    .info-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .info-value {
        text-align: left;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .ai-modal-content {
        padding: 32px 24px;
    }
    
    .card-badge {
        right: 12px;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .multi-select-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }
}
