/* 疾病自我诊断工具专用样式 */

/* 免责声明样式 */
.disclaimer {
    padding: 15px;
    background-color: #fff3f3;
    border-radius: 8px;
    border-left: 4px solid #ff4d4f;
    margin-bottom: 20px;
}

.disclaimer h3 {
    margin-top: 0;
    color: #ff4d4f;
    font-size: 18px;
}

.disclaimer p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* 诊断工具样式 */
.diagnosis-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 选项卡样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #f5f5f5;
    margin-right: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab:hover {
    background-color: #e9e9e9;
}

.tab.active {
    background-color: #fff;
    border-color: #ddd;
    border-bottom-color: #fff;
    margin-bottom: -1px;
    color: #4a90e2;
    font-weight: bold;
}

/* 选项卡内容样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 症状选择器样式 */
.symptom-selector {
    margin-bottom: 20px;
}

.body-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.body-part {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.body-part:hover,
.body-part.active {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.symptoms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.symptom-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
}

.symptom-item input {
    margin-right: 8px;
}

.selected-symptoms {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f7ff;
    border-radius: 4px;
}

.selected-symptoms h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.selected-symptoms ul {
    margin: 0;
    padding-left: 20px;
}

.selected-symptoms li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

/* 问卷样式 */
.questionnaire {
    margin-bottom: 20px;
}

.question {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.question h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    display: flex;
    align-items: center;
}

.option input {
    margin-right: 8px;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #3a7bc8;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e9e9e9;
}

/* 结果样式 */
.result-section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.result-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.result-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.possible-conditions {
    margin-bottom: 20px;
}

.condition-card {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.condition-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.condition-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.condition-card .match-rate {
    display: inline-block;
    padding: 3px 8px;
    background-color: #4a90e2;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 10px;
}

.recommendations {
    margin-top: 20px;
}

.recommendations h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.recommendations li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.selected-body-part {
    margin-bottom: 20px;
}

.selected-body-part h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1 1 auto;
        min-width: 80px;
        text-align: center;
        font-size: 14px;
        padding: 8px 12px;
    }

    .body-parts {
        gap: 8px;
    }

    .body-part {
        padding: 6px 12px;
        font-size: 14px;
    }

    .symptoms-list {
        gap: 8px;
    }

    .symptom-item {
        padding: 6px 12px;
        font-size: 14px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .condition-card {
        padding: 12px;
    }

    .question {
        padding: 12px;
    }
}
