/* 退休年龄计算器专用样式 */

/* 计算表单 */
.calculator-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
}

.input-hint {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.radio-item:hover,
.checkbox-item:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.radio-item input,
.checkbox-item input {
    margin-right: 8px;
    cursor: pointer;
}

.radio-item input:checked + .radio-label,
.checkbox-item input:checked + .checkbox-label {
    color: #007bff;
    font-weight: 600;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* 结果展示区域 */
.result-section {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.result-section .section-title {
    color: white;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.result-icon {
    font-size: 32px;
    margin-right: 15px;
    min-width: 32px;
}

.result-content {
    flex: 1;
}

.result-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.result-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.result-details h4 {
    margin: 0 0 15px 0;
    color: white;
}

.details-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    opacity: 0.9;
}

.detail-value {
    font-weight: 600;
}

/* 退休政策说明 */
.policy-section {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.policy-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.policy-item h4 {
    margin: 0 0 15px 0;
    color: #007bff;
}

.policy-content p {
    margin: 8px 0;
    line-height: 1.5;
}

.policy-content strong {
    color: #495057;
}

/* 历史记录 */
.history-section {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #212529;
}

.history-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.history-list {
    margin: 20px 0;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.history-info {
    flex: 1;
}

.history-birth {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.history-profile {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.history-time {
    color: #6c757d;
    font-size: 12px;
}

.history-result {
    text-align: center;
    margin: 0 20px;
}

.history-retirement {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.history-age {
    color: #6c757d;
    font-size: 14px;
}

.history-actions {
    display: flex;
    gap: 5px;
}

.empty-history {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

/* 统计信息 */
.statistics-section {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
}

.statistics-section .section-title {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 使用说明 */
.help-section {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.help-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.help-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.help-item h4 {
    margin: 0 0 10px 0;
    color: #007bff;
}

.help-item p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calculator-form {
        padding: 20px;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
    }

    .result-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .details-content {
        grid-template-columns: 1fr;
    }

    .policy-grid {
        grid-template-columns: 1fr;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .history-result {
        margin: 0;
        text-align: left;
    }

    .history-actions {
        align-self: stretch;
    }

    .history-actions .btn {
        flex: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-content {
        grid-template-columns: 1fr;
    }

    .policy-section,
    .history-section,
    .statistics-section,
    .help-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}
