/* ===== M37 & M78 article detail ===== */
body.page-inner {
    background: #ffffff;
}

.m37-article {
    position: relative;
    z-index: 1;
    padding-bottom: calc(100 * var(--rpx));
    color: var(--text-primary);
}

.m37-article .wrapper {
    container-type: inline-size;
    --article-rpx: calc(100cqw / 1600);
}

.m37-article .article-hero {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    width: 100%;
    height: calc(1078 * var(--rpx));
    overflow: hidden;
    pointer-events: none;
}

.m37-article--legal .article-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    pointer-events: none;
}

.m37-article .article-hero__bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.m37-article .wrapper {
    position: relative;
    z-index: 1;
}

/* ===== header ===== */
.m37-article .article-head {
    padding-top: calc(192 * var(--rpx));
}

.m37-article .article-head__title {
    margin: 0;
    max-width: calc(960 * var(--article-rpx));
    font-size: calc(58 * var(--fpx-50));
    font-weight: 600;
    line-height: calc(68 / 58);
}

.m37-article .article-head__lead {
    margin: calc(26 * var(--article-rpx)) 0 0;
    max-width: calc(960 * var(--article-rpx));
    font-size: calc(24 * var(--fpx));
    font-weight: 400;
    line-height: calc(44 * var(--article-rpx));
    text-align: justify;
    text-indent: 2em;
}

.m37-article .article-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(40 * var(--article-rpx));
    margin-top: calc(36 * var(--article-rpx));
}

.m37-article .article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: calc(8 * var(--article-rpx));
    font-size: calc(14 * var(--fpx));
    line-height: calc(21 / 14);
}

.m37-article .article-meta-icon {
    display: block;
    width: calc(16 * var(--article-rpx));
    height: calc(16 * var(--article-rpx));
    flex-shrink: 0;
    opacity: 0.6;
}

.m37-article .article-rule {
    position: relative;
    display: block;
    height: calc(2 * var(--article-rpx));
    background: rgba(0, 0, 0, 0.1);
}

.m37-article .article-rule::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--brand-red);
}

.m37-article .article-rule--main::before {
    width: calc(160 * var(--article-rpx));
}

.m37-article .article-rule--side-only::before {
    width: calc(80 * var(--article-rpx));
}

/* ===== two-column layout ===== */
.m37-article .article-grid {
    display: grid;
    grid-template-columns: minmax(0, calc(960 * var(--article-rpx))) minmax(0, calc(480 * var(--article-rpx)));
    column-gap: calc(160 * var(--article-rpx));
    align-items: start;
    margin-top: calc(71 * var(--article-rpx));
}

.m37-article .article-main {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
}

.m37-article .article-aside {
    grid-column: 2;
    grid-row: 1;
}

.m37-article .article-main-rule,
.m37-article .article-aside-rule {
    margin-bottom: calc(25 * var(--article-rpx));
}

.m37-article .article-body {
    font-size: calc(16 * var(--fpx));
    line-height: calc(30 * var(--article-rpx));
    text-align: justify;
    color: var(--text-primary);
}

.m37-article .article-body ul {
    list-style-type: disc;
    list-style-position: outside;
}

.m37-article .article-body p,
.m37-article .article-body ul,
.m37-article .article-body li {
    margin: 0;
    line-height: calc(30 * var(--article-rpx));
}

.m37-article .article-body > p {
    text-indent: 2em;
}

.m37-article .article-body ul {
    color: #4472C4;
    padding-left: 2em;
    text-indent: 0;
}

.m37-article .article-body > p[style*="text-align:center"],
.m37-article .article-body > p[style*="text-align:right"] {
    text-indent: 0;
}

.m37-article .article-body > p[style*="text-align:right"] {
    text-align: right;
}

.m37-article .article-body > h2 {
    margin: 0;
    font-size: calc(18 * var(--fpx));
    font-weight: 600;
    line-height: calc(34 * var(--article-rpx));
    color: #DF0716;
}

.m37-article .article-body a {
    word-break: break-all;
}

.m37-article .article-body a:hover {
    text-decoration: underline;
}

.m37-article--legal .article-grid,
.m37-article--no-aside .article-grid {
    grid-template-columns: minmax(0, 1fr);
}

.m37-article--home-news .article-rec__item {
    gap: calc(12 * var(--article-rpx));
}

.m37-article--legal .article-head__title,
.m37-article--legal .article-head__lead {
    max-width: none;
}

.m37-article--legal .article-body h2 {
    margin: calc(36 * var(--article-rpx)) 0 0;
    font-size: calc(20 * var(--fpx));
    font-weight: 600;
    line-height: calc(32 * var(--article-rpx));
    color: var(--text-primary);
}

.m37-article--legal .article-body h2:first-child {
    margin-top: 0;
}

.m37-article--legal .article-body h2 + p {
    margin-top: calc(12 * var(--article-rpx));
}

.m37-article .article-body .article-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: calc(8 * var(--article-rpx)) 0 calc(30 * var(--article-rpx));
    font-size: calc(14 * var(--fpx));
    line-height: calc(24 * var(--article-rpx));
}

.m37-article .article-body .article-table th,
.m37-article .article-body .article-table td {
    border: 1px solid #D9D9D9;
    padding: calc(8 * var(--article-rpx)) calc(12 * var(--article-rpx));
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.m37-article .article-body .article-table--compare .article-table__col-label {
    width: 24%;
}

.m37-article .article-body .article-table--compare .article-table__col-formula {
    width: 38%;
}

.m37-article .article-body .article-table--params .article-table__col-param {
    width: 12%;
}

.m37-article .article-body .article-table--params .article-table__col-value {
    width: 14%;
}

.m37-article .article-body .article-table--params .article-table__col-note {
    width: 74%;
}

.m37-article .article-body .article-table--verdict .article-table__col-verdict-case {
    width: 26%;
}

.m37-article .article-body .article-table--verdict .article-table__col-result {
    width: 74%;
}

.m37-article .article-body .article-table--split-panel {
    margin: calc(8 * var(--article-rpx)) 0 calc(30 * var(--article-rpx));
}

.m37-article .article-body .article-table--split-panel .article-table__col-major {
    width: 60%;
}

.m37-article .article-body .article-table--split-panel .article-table__col-minor {
    width: 40%;
}

.m37-article .article-body .article-table--split-panel td {
    text-align: left;
    vertical-align: top;
}

.m37-article .article-body .article-table--split-panel .article-panel p,
.m37-article .article-body .article-table--split-panel .article-panel li {
    padding-left: 0;
    text-indent: 0;
}

.m37-article .article-body .article-table ul {
    padding-left: 1.5em;
    text-indent: 0;
}

.m37-article .article-body .article-table--split-panel .article-panel p + p {
    margin-top: calc(4 * var(--article-rpx));
}

.m37-article .article-body .article-table th {
    background: #E8F0FE;
    color: #4472C4;
    font-weight: 600;
}

.m37-article .article-body p:has(> img:only-child) {
    margin: calc(8 * var(--article-rpx)) 0 calc(30 * var(--article-rpx));
}

.m37-article .article-body p:has(> img:only-child) img {
    display: inline-block;
    height: auto;
}

.m37-article .article-outro p {
    margin: 0;
    line-height: calc(30 * var(--article-rpx));
}

.m37-article .article-outro {
    margin-top: calc(48 * var(--article-rpx));
    margin-bottom: calc(48 * var(--article-rpx));
    padding:
        calc(41 * var(--article-rpx))
        calc(60 * var(--article-rpx));
    border-radius: calc(20 * var(--article-rpx));
    background: #FAFCFD;
    font-size: calc(16 * var(--fpx));
    line-height: calc(30 * var(--article-rpx));
    text-align: justify;
}

.m37-article .article-disclaimer {
    margin-top: 0;
    text-align: justify;
    color: var(--text-primary);
}

/* ===== sidebar ===== */
.m37-article .article-aside-head {
    position: sticky;
    top: calc(120 * var(--rpx));
}

.m37-article .article-aside__title {
    margin: 0 0 calc(24 * var(--article-rpx));
    font-size: calc(20 * var(--fpx));
    font-weight: 600;
    line-height: calc(34 / 20);
}

.m37-article .article-aside__cover {
    margin: 0;
    overflow: hidden;
}

.m37-article .article-aside__cover a {
    display: block;
}

.m37-article .article-aside__cover img {
    display: block;
    width: 100%;
    height: auto;
}

.m37-article .article-rec {
    margin-top: calc(80 * var(--article-rpx));
}

.m37-article .article-rec__title {
    margin: 0 0 calc(24 * var(--article-rpx));
    font-size: calc(20 * var(--fpx));
    font-weight: 600;
    line-height: calc(34 / 20);
}

.m37-article .article-rec__list {
    display: flex;
    flex-direction: column;
    gap: calc(10 * var(--article-rpx));
    margin: 0;
    padding: 0;
    list-style: none;
}

.m37-article .article-rec__item {
    display: flex;
    align-items: center;
    gap: calc(20 * var(--article-rpx));
    min-height: calc(120 * var(--article-rpx));
    padding: calc(20 * var(--article-rpx));
    border-radius: calc(10 * var(--article-rpx));
    background: #FAFCFD;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.m37-article .article-rec__item:hover,
.m37-article .article-rec__item:focus-visible {
    background: #F3F6FA;
}

.m37-article .article-rec__item:hover .article-rec__tag,
.m37-article .article-rec__item:focus-visible .article-rec__tag {
    background: var(--brand-red);
    color: #FFFFFF;
    box-shadow: 0 calc(5 * var(--article-rpx)) calc(15 * var(--article-rpx)) rgba(0, 12, 36, 0.1);
}

.m37-article .article-rec__tag {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: calc(80 * var(--article-rpx));
    height: calc(80 * var(--article-rpx));
    border-radius: calc(5 * var(--article-rpx));
    background: #FFFFFF;
    box-shadow: 0 calc(5 * var(--article-rpx)) calc(15 * var(--article-rpx)) rgba(0, 12, 36, 0.1);
    color: var(--brand-red);
    font-size: calc(20 * var(--fpx));
    font-weight: 600;
    line-height: calc(30 / 20);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.m37-article .article-rec__text {
    font-size: calc(18 * var(--fpx));
    font-weight: 600;
    line-height: calc(28 / 18);
}

/* ===== pager & back ===== */
.m37-article .article-pager {
    display: flex;
    align-items: stretch;
    gap: calc(40 * var(--article-rpx));
    width: 100%;
    max-width: 100%;
    margin-top: calc(60 * var(--article-rpx));
    padding-top: calc(30 * var(--article-rpx));
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.m37-article .article-pager__placeholder {
    flex: 1 1 0;
    min-width: 0;
}

.m37-article .article-pager__divider {
    flex: 0 0 calc(1 * var(--article-rpx));
    background: rgba(0, 0, 0, 0.1);
}

.m37-article .article-pager__link {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: calc(23 * var(--article-rpx));
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.m37-article .article-pager__link--prev {
    justify-content: flex-start;
}

.m37-article .article-pager__link--next {
    justify-content: flex-end;
    text-align: right;
}

.m37-article .article-pager__link:hover,
.m37-article .article-pager__link:focus-visible {
    color: var(--brand-red);
}

.m37-article .article-pager__icon {
    display: block;
    width: calc(24 * var(--article-rpx));
    height: auto;
    flex-shrink: 0;
}

.m37-article .article-pager__copy {
    display: flex;
    flex-direction: column;
    gap: calc(4 * var(--article-rpx));
    min-width: 0;
}

.m37-article .article-pager__label,
.m37-article .article-pager__title {
    font-size: calc(16 * var(--fpx));
    line-height: calc(30 / 16);
}

.m37-article .article-back {
    display: flex;
    justify-content: center;
    margin-top: calc(48 * var(--article-rpx));
    grid-column: 1;
    grid-row: 2;
}

.m37-article .article-back .btn-ctn {
    margin: 0;
}

.m37-article .article-back__btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: calc(240 * var(--article-rpx));
    height: calc(60 * var(--article-rpx));
    padding: 0 calc(10 * var(--article-rpx));
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: calc(300 * var(--article-rpx));
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: calc(16 * var(--fpx));
    font-weight: 400;
    line-height: calc(24 / 16);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: filter 0.2s;
}

.m37-article .article-back__btn:hover {
    filter: brightness(0.98);
}

.m37-article .article-back__btn .text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.m37-article .article-back__icon {
    flex: 0 0 calc(40 * var(--article-rpx));
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(40 * var(--article-rpx));
    height: calc(40 * var(--article-rpx));
    border-radius: 50%;
    background: var(--brand-red);
}

.m37-article .article-back__icon img {
    display: block;
    width: calc(11 * var(--article-rpx));
    height: calc(11 * var(--article-rpx));
    object-fit: contain;
}

/* ===== @828 mobile ===== */
@media (max-width: 828px) {
    .m37-article {
        padding-bottom: calc(64 * var(--rpx));
    }

    .m37-article .article-hero {
        height: auto;
        min-height: calc(360 * var(--rpx));
    }

    .m37-article .article-head {
        padding-top: var(--mobile-hero-pad-top);
    }

    .m37-article .article-head__title {
        max-width: none;
        font-size: calc(28 * var(--fpx));
        line-height: 1.35;
    }

    .m37-article .article-head__lead {
        max-width: none;
        margin-top: calc(16 * var(--rpx));
        font-size: calc(16 * var(--fpx));
        line-height: 1.75;
    }

    .m37-article .article-head__meta {
        gap: calc(20 * var(--rpx));
        margin-top: calc(20 * var(--rpx));
    }

    .m37-article .article-meta-item {
        font-size: calc(14 * var(--fpx));
        gap: calc(8 * var(--rpx));
    }

    .m37-article .article-meta-icon {
        width: 1.15em;
        height: 1.15em;
    }

    .m37-article .article-grid {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        margin-top: calc(32 * var(--rpx));
    }

    .m37-article .article-main,
    .m37-article .article-aside,
    .m37-article .article-back {
        grid-column: 1;
        grid-row: auto;
    }

    .m37-article .article-rule {
        height: calc(2 * var(--rpx));
    }

    .m37-article .article-rule--main::before {
        width: 10%;
    }

    .m37-article .article-rule--side-only::before {
        width: 5%;
    }

    .m37-article .article-main-rule,
    .m37-article .article-aside-rule {
        margin-bottom: calc(16 * var(--rpx));
    }

    .m37-article .article-body {
        font-size: calc(15 * var(--fpx));
        line-height: 1.75;
    }

    .m37-article .article-body p,
    .m37-article .article-body ul,
    .m37-article .article-body li,
    .m37-article .article-body > h2 {
        font-size: calc(17 * var(--fpx));
        line-height: 1.75;
    }

    .m37-article .article-body p + p,
    .m37-article .article-body p + ul,
    .m37-article .article-body ul + p,
    .m37-article .article-body h2 + p,
    .m37-article .article-body p + h2,
    .m37-article .article-body ul + h2,
    .m37-article .article-body h2 + ul {
        margin-top: calc(12 * var(--rpx));
    }

    .m37-article .article-body img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }

    .m37-article .article-body p:has(> img:only-child) {
        margin: calc(16 * var(--rpx)) 0;
    }

    .m37-article .article-body p:has(> img:only-child) img {
        width: auto !important;
        max-width: 100%;
    }

    .m37-article .article-body .article-table {
        font-size: calc(12 * var(--fpx));
        line-height: 1.5;
    }

    .m37-article .article-outro {
        margin-top: calc(32 * var(--rpx));
        margin-bottom: calc(32 * var(--rpx));
        padding: calc(24 * var(--rpx)) calc(24 * var(--rpx));
        font-size: calc(15 * var(--fpx));
        line-height: 1.75;
    }

    .m37-article .article-outro p {
        line-height: 1.75;
    }

    .m37-article .article-outro p + p {
        margin-top: calc(12 * var(--rpx));
    }

    .m37-article .article-aside {
        margin-top: calc(40 * var(--rpx));
    }

    .m37-article .article-aside-head {
        position: static;
    }

    .m37-article .article-aside__title {
        margin-bottom: calc(16 * var(--rpx));
        font-size: calc(18 * var(--fpx));
    }

    .m37-article .article-rec {
        margin-top: calc(40 * var(--rpx));
    }

    .m37-article .article-rec__title {
        margin-bottom: calc(16 * var(--rpx));
        font-size: calc(18 * var(--fpx));
    }

    .m37-article .article-rec__item {
        gap: calc(20 * var(--rpx));
        min-height: calc(100 * var(--rpx));
        padding: calc(20 * var(--rpx));
        align-items: center;
    }

    .m37-article .article-rec__tag {
        width: calc(72 * var(--rpx));
        height: calc(72 * var(--rpx));
        font-size: calc(18 * var(--fpx));
        border-radius: calc(6 * var(--rpx));
    }

    .m37-article .article-rec__text {
        flex: 1;
        min-width: 0;
        font-size: calc(16 * var(--fpx));
        line-height: calc(24 / 16);
    }

    .m37-article .article-pager {
        flex-direction: column;
        gap: calc(20 * var(--rpx));
        margin-top: calc(40 * var(--rpx));
        padding-top: calc(24 * var(--rpx));
    }

    .m37-article .article-pager__divider {
        display: none;
    }

    .m37-article .article-pager__link {
        gap: calc(12 * var(--rpx));
    }

    .m37-article .article-pager__icon {
        width: calc(16 * var(--rpx));
    }

    .m37-article .article-pager__label,
    .m37-article .article-pager__title {
        font-size: calc(14 * var(--fpx));
        line-height: calc(22 / 14);
    }

    .m37-article .article-back {
        margin-top: calc(40 * var(--rpx));
    }

    .m37-article .article-back__btn {
        width: auto;
        min-width: 12em;
        height: 2.75em;
        padding: 0 0.625em;
        border-radius: 999em;
        font-size: calc(14 * var(--fpx));
    }

    .m37-article .article-back__icon {
        flex: 0 0 2em;
        width: 2em;
        height: 2em;
    }

    .m37-article .article-back__icon img {
        width: 0.55em;
        height: 0.55em;
    }
}

