/* 死亡计算器样式 */

.tool-introduction {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

/* 表单样式 */
.calculator-form .card {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calculator-form .card-header {
    font-weight: bold;
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form .custom-control {
    margin-bottom: 0.5rem;
}

/* 结果样式 */
.result-container .card {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.life-expectancy-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.life-expectancy-value {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.life-expectancy-label {
    font-size: 1rem;
    margin-top: 5px;
}

.remaining-life {
    margin-top: 2rem;
}

.remaining-life h5 {
    margin-bottom: 1rem;
}

.remaining-life .progress {
    height: 25px;
    font-size: 0.9rem;
    font-weight: bold;
}

.factors-analysis {
    margin-top: 2rem;
}

.factors-analysis h5 {
    margin-bottom: 1rem;
}

.factors-analysis .table th {
    background-color: #f8f9fa;
}

.factor-impact-positive {
    color: #28a745;
}

.factor-impact-negative {
    color: #dc3545;
}

.factor-impact-neutral {
    color: #6c757d;
}

/* 分享模态框 */
#share-qrcode {
    width: 150px;
    height: 150px;
}

.copy-btn.copied {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .life-expectancy-circle {
        width: 120px;
        height: 120px;
    }
    
    .life-expectancy-value {
        font-size: 2.5rem;
    }
}
