/* 体质评测表单样式 */
.main-content {
    background-color: #f9f9f9;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.assessment-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 30px;
    max-width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.form-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

.history-link {
    margin-top: 15px;
}

.history-link a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
}

.history-link a:hover {
    text-decoration: underline;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-icon {
    margin-right: 10px;
    font-size: 22px;
}

.section-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group {
    flex: 1;
    padding: 0 10px;
    margin-bottom: 15px;
    min-width: 200px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #4a90e2;
    outline: none;
}

/* 评估问题样式 */
.assessment-questions {
    position: relative;
}

.question-page {
    display: none;
}

.question-page.active {
    display: block;
}

.question-item {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.question-item:hover {
    background: #f0f5ff;
}

.question-title {
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.option-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: calc(20% - 8px);
    justify-content: center;
}

.option-label:hover {
    border-color: #4a90e2;
}

.option-label input[type="radio"] {
    margin-right: 6px;
}

.option-label input[type="radio"]:checked + span {
    font-weight: 500;
    color: #4a90e2;
}

/* 分页导航 */
.pagination-nav {
    margin-bottom: 20px;
}

.page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-tab {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.page-tab.active {
    background: #4a90e2;
    color: white;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.page-indicator {
    font-size: 14px;
    color: #666;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background-color: #3a7bc8;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 加载指示器 */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .option-label {
        width: 100%;
        justify-content: flex-start;
    }
    
    .option-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .page-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .form-section {
        background: #2d2d2d;
    }
    
    .form-section h2 {
        color: #eee;
        border-bottom-color: #444;
    }
    
    .form-header h1 {
        color: #64a8f2;
    }
    
    .form-header p,
    .section-desc,
    .question-title,
    .form-label {
        color: #bbb;
    }
    
    .option-item,
    .symptom-item {
        background: #383838;
    }
    
    .option-item:hover,
    .symptom-item:hover {
        background: #404040;
    }
    
    .option-item.selected,
    .symptom-item.selected {
        background: #2980b9;
        border-color: #2071a7;
    }
    
    .option-text,
    .symptom-text {
        color: #ddd;
    }
    
    .form-control {
        background: #333;
        border-color: #555;
        color: #eee;
    }
    
    .form-control:focus {
        border-color: #64a8f2;
    }
    
    .btn-secondary {
        background-color: #444;
        color: #eee;
    }
    
    .btn-secondary:hover {
        background-color: #555;
    }
} 