/* 预测页面容器样式 */
.predict-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

/* 预测结果样式 */
.predict-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.predict-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.predict-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.predict-result h3 {
    margin-bottom: 12px;
    font-weight: 600;
}

.predict-result p {
    margin: 4px 0;
    color: inherit;
}

/* MBTI 结果卡片样式 */
.mbti-result-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mbti-type {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.mbti-confidence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
}

.confidence-label {
    font-weight: 500;
}

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

/* 数据项样式 */
.predict-result .data-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.predict-result .data-item:last-child {
    border-bottom: none;
}

.predict-result .data-label {
    font-weight: 500;
    color: #555;
}

/* 返回链接样式 */
.back-link {
    margin-top: 30px;
    text-align: center;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.back-link a:hover {
    background: rgba(102, 126, 234, 0.1);
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .predict-container {
        padding: 20px 15px;
    }
    
    .mbti-result-card {
        padding: 20px 15px;
    }
    
    .mbti-type {
        font-size: 36px;
    }
    
    .confidence-value {
        font-size: 16px;
    }
    
    .predict-result .data-item {
        font-size: 13px;
        padding: 6px 0;
    }
    
    /* MBTI 维度进度条移动端适配 */
    .mbti-dimension {
        margin-bottom: 16px;
    }
    
    .dimension-labels {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .dim-percent {
        font-size: 16px;
        font-weight: 600;
    }
    
    .bar-bg {
        height: 10px;
    }
    
    .bar-pointer {
        width: 14px;
        height: 14px;
        top: -2px;
    }
}

/* MBTI 维度进度条样式 */
.mbti-dimension {
    margin-bottom: 20px;
}

.dimension-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 16px;
}

.dim-left {
    color: #667eea;
    font-weight: 600;
}

.dim-right {
    color: #764ba2;
    font-weight: 600;
}

.dim-percent {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.dimension-bar {
    position: relative;
}

.bar-bg {
    position: relative;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: visible;
}

.bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 6px 0 0 6px;
}

.bar-pointer {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 50%;
    top: -2px;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
