*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body{
    margin: 0;
    font-family: 'Microsoft Yahei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #263238;
    background: #f6f8fb;
}

a {
    cursor: pointer;
}

.page-shell {
    width: 100%;
    padding: 1px 0;
}

.sm-container{
    width: calc(100% - 32px);
    max-width: 900px;
    margin: 0 auto;
}

.main-container{
    width: calc(100% - 32px);
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-card {
    margin-top: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(30, 45, 60, 0.08);
}

.page-card {
    margin-top: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(30, 45, 60, 0.08);
}

.page-card--wide {
    max-width: 1200px;
}

.page-title {
    margin: 0 0 18px;
    font-size: 28px;
    text-align: center;
}

.others {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    text-align: center;
    margin: 10px 0;
}

.others .btn {
    margin: 0;
    white-space: nowrap;
}

.header{
    font-size: 20px;
    text-align: center;
    margin: 20px 0;
}

.ad-holder-center{
    text-align: center;
    overflow: hidden;
}

.ad-holder-center .adsbygoogle {
    max-width: 100%;
}

.ad-holder-left{
    position: fixed;
    z-index: 999;
    top: 10%;
    left: 0;
}

.ad-holder-right{
    position: fixed;
    z-index: 999;
    top: 10%;
    right: 0;
}

.reward{
    margin-top: 30px;
    text-align: center;
}

.reward .img{
    margin: 0 40px;
    width: 200px;
}

.region .btn{
    margin: 6px;
}

.region {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 8px 0 16px;
}

.table-responsive {
    margin-top: 16px;
    border: 0;
}

.table-responsive.table-wide .table {
    min-width: 620px;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.calculator-form-three {
    grid-template-columns: 180px repeat(2, minmax(0, 1fr));
}

.calculator-form-single {
    grid-template-columns: minmax(0, 1fr);
}

.calc-field {
    display: flex;
    align-items: stretch;
    min-width: 0;
    margin: 0;
    font-weight: normal;
}

.calc-label,
.calc-affix {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    color: #555;
    background: #f7f9fc;
    border: 1px solid #ccc;
}

.calc-label {
    flex: 0 0 auto;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    white-space: nowrap;
}

.calc-control {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.calc-control .form-control {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
}

.calc-control .form-control:first-child {
    border-radius: 0;
}

.calc-control .form-control:last-child {
    border-radius: 0 4px 4px 0;
}

.calc-affix {
    flex: 0 0 auto;
    border-left: 0;
}

.calc-affix:first-child {
    border-left: 1px solid #ccc;
}

.calc-affix:last-child {
    border-radius: 0 4px 4px 0;
}

.calc-checkbox-control {
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
}

.calc-checkbox-control input[type="checkbox"] {
    margin: 0 6px 0 0;
}

.table input[type="number"] {
    width: 100%;
    min-width: 78px;
}

.chart-container {
    margin-top: 18px;
    margin-bottom: 28px;
}

.chart-container > div + div {
    margin-top: 18px;
}

.chart-panel {
    width: 100%;
    height: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(30, 45, 60, 0.08);
}

.legacy-chart-panel {
    width: 100%;
    height: 280px;
}

#root,
.article-section {
    width : calc(100% - 32px);
    max-width : 700px;
    margin: 0 auto;
}

.article-section table {
    text-align: left;
    width     : 100%;
}

.article-section table td {
    border: 1px solid #000;
}

.person {
    display     : inline-block;
    width       : 200px;
    margin-right: 10px;
}

.line {
    border-top : 1px solid #ccc;
    line-height: 35px;
}

.company {
    display: inline-block;
    width  : 200px;
}

.name {
    display     : inline-block;
    width       : 200px;
    margin-right: 30px;
    text-align  : right;
}

@media (max-width: 1180px) {
    .ad-holder-left,
    .ad-holder-right {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        background: #fff;
    }

    .ad-holder-center {
        display: none;
    }

    .sm-container,
    .main-container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .calculator-card {
        margin-top: 0;
        padding: 12px;
        border-radius: 0;
        box-shadow: none;
    }

    .page-card {
        margin-top: 0;
        padding: 12px;
        border-radius: 0;
        box-shadow: none;
    }

    .page-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .header {
        font-size: 18px;
        line-height: 1.4;
        margin: 14px 0;
    }

    .others {
        justify-content: flex-start;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .others .btn,
    .region .btn {
        padding: 7px 10px;
        font-size: 13px;
    }

    .region {
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .region .btn {
        margin: 4px;
    }

    .calculator-form,
    .calculator-form-three {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calc-field {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .calc-label {
        justify-content: flex-start;
        white-space: normal;
        line-height: 1.35;
    }

    .calc-label,
    .calc-affix,
    .calc-control .form-control,
    .calc-checkbox-control {
        min-height: 42px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive .table {
        margin-bottom: 0;
    }

    .table-responsive.table-wide .table {
        min-width: 620px;
    }

    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 8px;
        font-size: 13px;
        vertical-align: middle;
    }

    .chart-container {
        padding-left: 12px;
        padding-right: 12px;
        margin-top: 12px;
    }

    .chart-panel {
        height: 330px;
        border-radius: 8px;
        box-shadow: none;
    }

    .legacy-chart-panel {
        height: 330px;
    }

    #root,
    .article-section {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .article-section table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .person,
    .company,
    .name {
        width: auto;
        max-width: 100%;
        margin-right: 8px;
        text-align: left;
    }

    .pretax-group.input-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pretax-group.input-group .input-group-addon,
    .pretax-group.input-group .form-control {
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        align-items: center;
        border: 1px solid #d6dde5;
        border-radius: 5px !important;
        box-shadow: none;
    }

    .pretax-group.input-group .input-group-addon {
        background: #f7f9fc;
        white-space: normal;
    }

    .pretax-group.input-group .input-group-addon input[type="checkbox"] {
        margin: 0 6px 0 0;
    }

    .pretax-group.input-group .form-control {
        padding-left: 12px;
        padding-right: 12px;
    }
}
