.calculator-section {
    background-color: #f8f9fa;
}

.calculator-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 结果部分样式 */
.results-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.difference-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.difference-value {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.difference-label {
    color: #6c757d;
    font-weight: 500;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table td, .table th {
    padding: 1rem;
    vertical-align: middle;
}

/* 图表部分样式 */
.age-chart-section {
    margin: 2rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 分享按钮样式 */
.share-buttons .btn {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.share-buttons .btn i {
    margin-right: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .calculator-card {
        padding: 1rem;
    }

    .difference-value {
        font-size: 1.5rem;
    }

    .table td, .table th {
        padding: 0.75rem;
    }
}

/* RTL支持 */
[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] .share-buttons .btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* 动画效果 */
.results-card {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 额外的美化样式 */
.calculator-section {
    position: relative;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #007bff 0%, #00d2ff 100%);
    z-index: 0;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transform: scaleX(1.5);
}

.calculator-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
} 