* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

.container {
    max-width: 100%;
    margin: 20px auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tabs-container {
    display: flex;
    /*background-color: #f8fafd;*/
    border-bottom: 1px solid #eaeaea;
}

.tab {
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: #666;
}

    .tab:hover {
        background-color: #f0f5ff;
        color: #2c80ff;
    }

    .tab.active {
        background-color: white;
        color: #2c80ff;
        border-bottom-color: #2c80ff;
    }

    .tab.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

        .tab.disabled:hover {
            background-color: inherit;
            color: #666;
        }

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.5s ease;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        font-weight: 500;
        margin-bottom: 8px;
        color: #333;
        text-align: left !important;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #2c80ff;
        box-shadow: 0 0 0 2px rgba(44, 128, 255, 0.1);
    }

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.abstract-textarea {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    transition: border 0.3s;
}

    .abstract-textarea:focus {
        outline: none;
        border-color: #2c80ff;
        box-shadow: 0 0 0 2px rgba(44, 128, 255, 0.1);
    }

.file-upload-section {
    margin-top: 25px;
}

.required {
    color: red;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

    .section-title .required {
        color: #e63946;
        margin-left: 5px;
    }


.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.upload-card {
    border: 2px dashed #c2d7ff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background-color: #f8fbfe;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

    .upload-card:hover {
        background-color: #f0f5ff;
        border-color: #2c80ff;
    }

    .upload-card.uploaded {
        background-color: #f0fff4;
        border-color: #28a745;
    }

        .upload-card.uploaded:hover {
            background-color: #e8f5e9;
        }

.upload-icon {
    font-size: 40px;
    color: #2c80ff;
    margin-bottom: 15px;
}

.upload-card.uploaded .upload-icon {
    color: #28a745;
}

.upload-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.upload-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.upload-hint {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.upload-file-info {
    background-color: white;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
    width: 100%;
    text-align: left;
    border: 1px solid #eaeaea;
}

.file-name {
    font-weight: 500;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-size {
    color: #666;
    font-size: 13px;
}

.remove-file {
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    padding: 3px 8px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    background: white;
}

    .remove-file:hover {
        background-color: #dc3545;
        color: white;
    }

.detection-area {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.detection-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.detection-status {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-pending {
    background-color: #ffc107;
}

.status-processing {
    background-color: #17a2b8;
}

.status-completed {
    background-color: #28a745;
}

.status-failed {
    background-color: #dc3545;
}

.status-text {
    font-weight: 500;
}

.detection-result {
    background-color: white;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .result-item:last-child {
        border-bottom: none;
    }

.result-label {
    color: #666;
}

.result-value {
    font-weight: 500;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #2c80ff;
    color: white;
}

    .btn-primary:hover {
        background-color: #1a6de8;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #5a6268;
        color: white !important;
    }

.btn-success {
    background-color: #28a745;
    color: white;
}

    .btn-success:hover {
        background-color: #218838;
    }

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

    .btn-warning:hover {
        background-color: #e0a800;
    }

.btn-disabled {
    background-color: #e9ecef;
    color: #999;
    cursor: not-allowed;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hint-box {
    background-color: #f8f9fa;
    border-left: 4px solid #2c80ff;
    padding: 15px;
    border-radius: 4px;
}

    .hint-box p {
        font-size: 14px;
        color: #666;
    }

.file-list {
    margin-top: 10px;
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 8px;
}

.file-list-name {
    font-weight: 500;
    flex: 1;
}

.file-list-size {
    color: #666;
    font-size: 13px;
    margin-right: 15px;
}

.submit-instruction {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
}

.final-submit-area {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    text-align: center;
}

.final-submit-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.final-submit-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.final-submit-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
}

.tab-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.page-hint {
    background-color: #f0f5ff;
    border-left: 4px solid #2c80ff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

    .page-hint p {
        color: #2c80ff;
        font-size: 14px;
    }

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

    .error-message.show {
        display: block;
    }

.form-control.error {
    border-color: #dc3545;
}

.validation-summary {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
}

    .validation-summary ul {
        margin: 5px 0 0 20px;
    }

    .validation-summary li {
        margin-bottom: 5px;
    }

.center-save-btn {
    display: flex;
    justify-content: center;
    width: 100%;
}

.external-report-area {
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.external-report-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.external-report-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.external-report-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.external-report-input {
    flex: 1;
}

.external-report-upload {
    flex: 2;
}

.external-report-card {
    border: 2px dashed #c2d7ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f8fbfe;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

    .external-report-card:hover {
        background-color: #f0f5ff;
        border-color: #2c80ff;
    }

    .external-report-card.uploaded {
        background-color: #f0fff4;
        border-color: #28a745;
    }

.external-report-info {
    background-color: white;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
    width: 100%;
    text-align: left;
    border: 1px solid #eaeaea;
}

.no-wrap-text {
    white-space: nowrap;
}

/* 修改后的检测统计信息样式 */
.detection-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 180px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    text-align: center;
}

.stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #2c80ff;
}

    .stat-value.pass-rate {
        color: #28a745;
    }

    .stat-value.remaining {
        color: #fd7e14;
    }

.stat-unit {
    font-size: 14px;
    color: #999;
    margin-left: 2px;
}

.stat-description {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* 基本信息下一步按钮右对齐 */
.basic-next-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 查重检测页面样式 */
.plagiarism-detection-area {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.plagiarism-detection-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.plagiarism-detection-status {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.plagiarism-detection-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.plagiarism-detection-result {
    background-color: white;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.plagiarism-button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 获取结果按钮样式 */
.fetch-result-btn {
    background-color: #6f42c1;
    color: white;
}

    .fetch-result-btn:hover {
        background-color: #5a32a3;
    }

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .tabs-container {
        flex-direction: column;
    }

    .tab {
        text-align: center;
        border-bottom: 1px solid #eaeaea;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        flex-direction: column;
        gap: 10px;
    }

        .tab-navigation .btn {
            width: 100%;
        }

    .external-report-row {
        flex-direction: column;
        gap: 10px;
    }

    .external-report-input,
    .external-report-upload {
        width: 100%;
    }

    .detection-stats {
        flex-direction: column;
        gap: 10px;
    }

    .basic-next-btn-container {
        justify-content: center;
    }

    .plagiarism-detection-stats {
        flex-direction: column;
        gap: 10px;
    }
}
