* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0 20px 20px;
}

.container {
    max-width: 920px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.share-float {
    text-align: center;
    padding: 16px 0 8px;
}

.share-float .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-float .share-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.share-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.78);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.tab:hover {
    color: #667eea;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group label .badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

.form-group label .badge.highlight {
    background: #667eea;
}

.form-group label .required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
    flex: 1;
}

.input-group .unit {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #6c757d;
    font-weight: 500;
}

.help-text {
    display: block;
    margin-top: 6px;
    color: #6c757d;
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.btn-calculate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.result-section {
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.result-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.result-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-item .label {
    display: block;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.result-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.result-item .value.deduct {
    color: #dc3545;
}

.result-item .value.tax {
    color: #fd7e14;
}

.result-item .value.income {
    color: #28a745;
}

.result-item.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.result-item.highlight .label,
.result-item.highlight .value {
    color: white;
}

.result-item.important {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.result-item.important .label,
.result-item.important .value {
    color: white;
}

.detail-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-table table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th,
.detail-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.detail-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.detail-table tbody tr:hover {
    background: #f8f9fa;
}

.detail-table tfoot td {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: none;
}

.detail-table tfoot td:last-child {
    color: #667eea;
    font-size: 1.1rem;
}

.compare-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.compare-table table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.compare-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.compare-table tbody tr:hover {
    background: #f8f9fa;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
}

.table-input {
    width: 90%;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
}

.table-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.compare-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.compare-column {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.compare-column h4 {
    padding: 14px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
}

.compare-column table {
    width: 100%;
    border-collapse: collapse;
}

.compare-column th,
.compare-column td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.compare-column th {
    background: #f8f9fa;
    font-weight: 600;
    color: #6c757d;
    text-align: left;
}

.compare-column td:first-child {
    text-align: left;
    color: #333;
    font-weight: 500;
}

.compare-column tbody tr:last-child td {
    border-bottom: none;
    font-weight: 600;
    color: #667eea;
}

.faq-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.faq-section h2 {
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #6c757d;
    line-height: 1.6;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    display: none;
}

.ad-placeholder span {
    color: #adb5bd;
    font-size: 14px;
}

.ad-placeholder.wide {
    margin: 30px 0;
}

.ad-placeholder.inline {
    margin: 20px 0;
    padding: 30px 20px;
}

footer {
    text-align: center;
    padding: 30px;
    color: white;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* ===== 相关计算工具 / 推荐阅读（与 mortgage-subsidy / rent-yield 同款组件） ===== */
.tools-section,
.related-articles {
    padding: 26px 28px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #f7f8fb;
    border-radius: 12px;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-card-content {
    flex: 1;
    min-width: 0;
}

.tool-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.tool-card-content p {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.tool-card-arrow {
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-arrow {
    transform: translateX(4px);
}

.related-article-list {
    display: grid;
    gap: 12px;
}

.related-article-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f7f8fb;
    border-radius: 10px;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.related-article-item:hover {
    background: #fff;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.12);
    border-left-color: #667eea;
}

.related-article-cat {
    flex-shrink: 0;
    white-space: nowrap;
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.related-article-item span:last-child {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.related-article-item:hover span:last-child {
    color: #667eea;
}

.tool-intro {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
    border-radius: 0 0 20px 20px;
}

.tool-intro h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
}

.intro-section {
    margin-bottom: 32px;
}

.intro-section:last-child {
    margin-bottom: 0;
}

.intro-section h3 {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 8px;
    border-left: 4px solid #667eea;
}

.input-guide,
.formula-guide,
.case-guide {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guide-item,
.formula-item,
.case-item {
    margin-bottom: 20px;
}

.guide-item:last-child,
.formula-item:last-child,
.case-item:last-child {
    margin-bottom: 0;
}

.guide-item h4,
.formula-item h4,
.case-item h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-item p,
.formula-item p,
.case-item p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.guide-item ul,
.formula-item ul,
.case-item ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.guide-item li,
.formula-item li,
.case-item li {
    color: #6c757d;
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 6px;
}

.tax-formula-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.85rem;
}

.tax-formula-table th,
.tax-formula-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.tax-formula-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.tax-formula-table tbody tr:hover {
    background: #f8f9fa;
}

.formula-note {
    font-size: 0.82rem !important;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px !important;
}

@media (max-width: 768px) {
.tab-content {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }

    .compare-result {
        grid-template-columns: 1fr;
    }

    .tool-intro {
        padding: 20px;
    }

    .input-guide,
    .formula-guide,
    .case-guide {
        padding: 16px;
    }

    .tax-formula-table {
        font-size: 0.75rem;
    }

    .tax-formula-table th,
    .tax-formula-table td {
        padding: 6px 4px;
    }

    .detail-table th,
    .detail-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .tool-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .related-article-item {
        padding: 12px 14px;
        gap: 10px;
    }
}

/* ===== 城市社保计算器入口（按区域分组 + 同城互链） ===== */
.city-hub {
    margin-top: 30px;
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.city-hub-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.city-hub-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
}

.city-hub-sub {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 22px;
}

.city-region {
    margin-bottom: 20px;
}

.city-region:last-child {
    margin-bottom: 0;
}

.region-name {
    font-size: 1rem;
    color: #4facfe;
    margin-bottom: 12px;
    font-weight: 700;
    border-left: 4px solid #4facfe;
    padding-left: 10px;
}

.city-cluster-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.city-cluster {
    flex: 1 1 200px;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    transition: all 0.3s ease;
}

.city-cluster:hover {
    box-shadow: 0 8px 22px rgba(79, 172, 254, 0.18);
    transform: translateY(-3px);
}

.city-cluster-head {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.city-cluster-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cluster-link {
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: white;
    color: #555;
    text-decoration: none;
    border: 1px solid #e0e4e8;
    transition: all 0.25s ease;
}

.cluster-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: transparent;
}

.cluster-link.active {
    color: #fff;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: transparent;
    font-weight: 600;
}

@media (max-width: 768px) {
    .city-hub {
        padding: 20px;
    }
    .city-cluster-grid {
        flex-direction: column;
    }
    .city-cluster {
        flex: 1 1 auto;
    }
}

/* 城市页内嵌互链块：已处于 .card 内，去除冗余白底/阴影/外边距 */
.city-hub-inpage {
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* =========================================================
   城市社保计算器页（模板 templates/social-city.html）补全样式
   以下 class 为该模板专用，主计算器页不使用，可安全追加
   ========================================================= */
.breadcrumb {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 18px;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero {
    text-align: center;
    color: #fff;
    padding: 6px 10px 26px;
}
.hero h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.hero .subtitle {
    font-size: 1rem;
    opacity: 0.92;
    margin-bottom: 8px;
    line-height: 1.6;
}
.hero .updated {
    font-size: 0.82rem;
    opacity: 0.8;
}

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 26px 28px;
    margin-bottom: 22px;
}
.card h2 {
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f7;
}
.card > h3 {
    color: #333;
    margin-bottom: 10px;
}

.data-note {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
}
.data-note h3 {
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}
.note-year {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}
.note-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.note-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    color: #4a5568;
    line-height: 1.7;
}
.note-list li:last-child {
    border-bottom: none;
}

.hint {
    color: #6c757d;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.calculator .calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}
.field {
    display: flex;
    flex-direction: column;
}
.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.field input,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}
.field input:focus,
.field select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}
.btn-calc {
    grid-column: 1 / -1;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}
.result {
    margin-top: 8px;
}
.result h3 {
    color: #333;
    margin: 18px 0 12px;
    font-size: 1.15rem;
}

.table-wrap {
    overflow-x: auto;
    margin: 6px 0 4px;
}
.data-table,
.result-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.data-table th,
.data-table td,
.result-table th,
.result-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef1f4;
    font-size: 0.92rem;
    color: #4a5568;
}
.data-table th,
.result-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}
.data-table tbody tr:hover,
.result-table tbody tr:hover {
    background: #f8f9fa;
}
.total-row td {
    background: #f0f4ff;
    font-weight: 700;
}
.grand td {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
}
.grand td strong {
    color: #fff;
}
.note {
    color: #6c757d;
    font-size: 0.82rem;
}
.tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #fff0f0;
    color: #e53e3e;
    font-size: 0.72rem;
    font-weight: 600;
}
.self {
    background: #f0f4ff;
}
.self td {
    font-weight: 600;
    color: #667eea;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}
.timeline li {
    position: relative;
    padding: 0 0 18px 22px;
    border-left: 2px solid #e2e8f0;
    margin-left: 6px;
}
.timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.tl-date {
    display: block;
    font-weight: 700;
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.tl-text {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.9rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.faq-list .faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #eef1f4;
}
.faq-list .faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.faq-q {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}
.faq-a {
    color: #6c757d;
    line-height: 1.8;
    font-size: 0.92rem;
}

.city-hub-inpage .city-cluster-grid {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
    .calculator .calc-form {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .data-table th,
    .data-table td,
    .result-table th,
    .result-table td {
        padding: 9px 10px;
        font-size: 0.82rem;
    }
}
