:root {
    --page: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4f7;
    --ink: #17212b;
    --muted: #687582;
    --line: #dce5eb;
    --primary: #116a7b;
    --primary-dark: #0b4f5d;
    --accent: #d88b35;
    --accent-soft: #fff3e4;
    --success-soft: #e8f5ef;
    --shadow: 0 18px 48px rgba(21, 43, 56, .12);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 15% 0, rgba(17, 106, 123, .13), transparent 26rem),
        linear-gradient(180deg, #fbfcfd 0, var(--page) 46%, #edf3f5 100%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

p {
    font-size: 15px;
    line-height: 1.65;
}

a {
    color: var(--primary);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 28px;
    align-items: start;
    width: min(1180px, calc(100% - 40px));
}

.header {
    padding: 24px 0 26px;
}

.header .container {
    display: flex;
    justify-content: center;
}

.brand-home {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ink);
    cursor: default;
}

.logo img {
    display: none;
}

.logo {
    text-align: center;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 8px 24px 8px 8px;
    border: 1px solid rgba(17, 106, 123, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 46px rgba(21, 43, 56, .10);
}

.brand-icon {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b4f5d 0, #168b9d 100%);
    box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .16), 0 10px 24px rgba(17, 106, 123, .22);
}

.brand-icon:before {
    content: "贷";
    position: absolute;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.brand-icon:after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    transform: none;
}

.brand-name {
    color: var(--primary-dark);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.brand-subtitle {
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.calculator {
    float: none;
    width: 100%;
    min-width: 0;
    margin-bottom: 32px;
    border: 1px solid rgba(220, 229, 235, .9);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}

.side {
    float: none;
    width: 100%;
    min-width: 0;
    margin-left: 0;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 28px;
    align-items: end;
    padding: 44px 42px 36px;
    background: linear-gradient(135deg, #0f5665 0, #147889 62%, #d88b35 160%);
    color: #fff;
}

.hero-main {
    min-width: 0;
}

.eyebrow {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 700;
}

.hero-panel h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.08;
    text-shadow: none;
}

.hero-copy {
    max-width: 600px;
    margin-top: 22px;
    padding-left: 16px;
    border-left: 4px solid rgba(255, 255, 255, .34);
    color: rgba(255, 255, 255, .86);
    font-size: 17px;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: normal;
}

.hero-metrics {
    display: grid;
    gap: 12px;
    margin-top: 0;
}

.hero-metrics span {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .88);
}

.hero-metrics strong {
    margin-right: 8px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.ui-bar,
.ui-bar[skin~=title] {
    min-height: 56px;
    height: auto;
    align-items: center;
    padding: 0 20px;
    border: 0;
    background: var(--surface);
    box-shadow: inset 0 -1px 0 var(--line);
    text-align: left;
}

.ui-bar[skin~=title] .title,
.ui-bar[skin~=title] .left,
.ui-bar[skin~=title] .right {
    height: 56px;
}

.ui-bar[skin~=title] .title {
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    text-shadow: none;
}

.ui-bar[skin~=title] .right {
    right: 18px;
}

.ui-btn,
.ui-btn[skin~=blue],
.ui-btn[skin~=back] {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(17, 106, 123, .18);
    text-shadow: none;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ui-btn:hover,
.ui-btn[skin~=blue].hover,
.ui-btn[skin~=blue].active {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.ui-btn[skin~=full] {
    height: 48px;
    line-height: 48px;
    margin-left: 0;
    font-size: 17px;
}

.ui-btn[skin~=mini] {
    width: 44px;
    padding: 0;
    line-height: 44px;
}

.ui-btn[skin~=back] {
    left: 0;
    width: auto;
    padding: 0 14px;
    line-height: 44px;
}

.ui-btn[skin~=back]:before,
.ui-btn[skin~=back]:after {
    display: none;
}

[skin~=i-home]:before,
[skin~=nav]:before {
    content: "⌂";
    font-family: inherit;
    top: 0;
}

.switch-tabs {
    padding: 18px 20px 8px;
    z-index: 1;
}

.switch-tabs ul {
    height: auto;
    min-height: 46px;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    line-height: 1.3;
}

.switch-tabs li {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-left: 0;
    border-radius: 7px;
    color: var(--muted);
    font-weight: 700;
}

.switch-tabs li div,
.switch-tabs li a {
    color: inherit;
    font-size: 14px;
}

.switch-tabs .select-tab {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 6px 16px rgba(17, 106, 123, .12);
}

.input-fields {
    padding: 14px 24px 24px;
}

.field-wrap {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(160px, .82fr);
    min-height: 68px;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #edf2f5;
}

.field-wrap label {
    width: auto;
    color: #35414d;
    font-size: 15px;
    font-weight: 700;
}

.field-wrap .field {
    width: auto;
    min-width: 0;
}

.field-wrap .field:nth-child(2):last-child {
    grid-column: 2 / -1;
}

.field-wrap .long-field,
.field-wrap .short-field,
.field-wrap .mid-field {
    width: auto;
    margin-left: 0;
}

.field .ui-text input,
.ui-select .value-bar {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
}

.field .ui-text input {
    padding: 0 48px 0 12px;
    text-indent: 0;
}

.ui-text:after {
    top: 10px;
    right: 14px;
    color: var(--muted);
}

.rate-text:before {
    display: none;
}

.field .rate-text input {
    text-indent: 0;
}

.ui-select,
.ui-select .value-bar {
    height: 44px;
    line-height: 44px;
}

.ui-select .value-bar {
    text-indent: 12px;
}

.ui-select .value-bar:after {
    content: "⌄";
    right: 14px;
    color: var(--muted);
    font-family: inherit;
    font-size: 18px;
}

.field .repay-method {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.field .repay-method input {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    accent-color: var(--primary);
}

.calbtn-wrap {
    margin-top: 22px;
}

.use-help {
    margin: 18px 20px;
    padding: 16px 18px;
    border: 1px solid #f0dfc6;
    border-radius: 8px;
    background: var(--accent-soft);
}

.use-help p {
    margin: 0;
    color: #72502b;
    font-size: 14px;
    line-height: 1.7;
}

.mod-tit {
    padding-top: 8px;
}

.mod-tit p,
.side .title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}

.ui-list {
    margin: 0 20px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.side .ui-list {
    margin: 10px 0 22px;
}

.ui-list .list-item {
    min-height: 52px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    box-shadow: none;
}

.ui-list .list-item:first-child {
    border-top: 0;
}

.ui-list .list-item:last-child {
    border-bottom: 0;
}

.ui-list .list-item .detail .atc-title {
    color: #2f3b45;
    font-size: 14px;
    line-height: 1.45;
}

[data-icon=">"]:after {
    width: auto;
    margin: 0 0 0 12px;
    color: #9aa8b2;
    font-family: inherit;
    font-size: 20px;
}

.calc-result,
.data-detail {
    background: var(--surface);
}

.result-list {
    margin: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.result-list li {
    min-height: 54px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}

.result-list li:last-child {
    border-bottom: 0;
}

.result-list .group-tit,
.data-container .group-tit {
    height: auto;
    min-height: 44px;
    background: var(--success-soft);
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 44px;
}

.result-list li .item-name,
.result-list li .item-value {
    line-height: 54px;
}

.result-list li .item-name {
    color: #43505b;
    font-size: 15px;
}

.result-list li .item-value {
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.data-container {
    margin: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
    background: #fff;
}

.data-container div.group-tit {
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}

.data-table {
    min-width: 620px;
}

.data-table tbody>tr>td,
.data-table thead>tr>th {
    padding: 11px 8px;
    border-bottom: 1px solid #e8eef2;
    color: #35414d;
    font-size: 14px;
    text-align: right;
}

.data-table tbody>tr>td:first-child,
.data-table thead>tr>th:first-child {
    text-align: center;
}

.data-table thead>tr>th {
    background: #f6f9fb;
    color: #687582;
    font-weight: 800;
}

.table-striped>tbody>tr:nth-child(odd)>td,
.table-striped>tbody>tr:nth-child(odd)>th {
    background: #fff;
    color: #35414d;
}

.table-striped>tbody>tr:nth-child(even)>td,
.table-striped>tbody>tr:nth-child(even)>th {
    background: #f9fbfc;
    color: #35414d;
}

.view-more {
    min-height: 48px;
    border-bottom: 0;
    background: #fff;
}

.view-more .detail .txt {
    color: var(--primary);
    font-size: 14px;
    line-height: 38px;
}

.recal-btn {
    margin: 20px;
}

.side {
    padding: 20px;
    border: 1px solid rgba(220, 229, 235, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 36px rgba(21, 43, 56, .08);
    position: sticky;
    top: 18px;
}

.side h3.title {
    padding: 0 0 12px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.links a {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #43505b;
    font-size: 13px;
}

.side .links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.side .links a {
    float: none;
    width: auto;
    height: auto;
    min-height: 36px;
    margin: 0;
    overflow: visible;
    line-height: 1.45;
}

.footer {
    clear: both;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 18px 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.footer-links {
    display: inline-flex;
    gap: 14px;
    margin-left: 14px;
}

.footer-links a {
    color: var(--muted);
}

.site-page {
    max-width: 860px !important;
}

.site-page .article-body h2 {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.site-page .article-body h2:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.site-page .meta-note {
    margin: -8px 0 26px;
    color: var(--muted);
    font-size: 14px;
}

.article-content {
    max-width: 860px !important;
    margin: 10px auto 32px !important;
    padding: 34px !important;
    border: 1px solid rgba(220, 229, 235, .9) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: var(--shadow) !important;
}

.article-content h1 {
    margin-bottom: 24px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--line) !important;
    color: var(--ink) !important;
    font-size: clamp(26px, 4vw, 38px) !important;
    line-height: 1.18 !important;
    text-shadow: none !important;
}

.article-body {
    color: #394650 !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
}

.article-body h2 {
    margin-top: 34px !important;
    margin-bottom: 12px !important;
    color: var(--primary-dark) !important;
    font-size: 22px !important;
}

.article-body h3 {
    margin-top: 24px !important;
    color: #293640 !important;
    font-size: 18px !important;
}

.article-body p {
    margin-bottom: 14px !important;
    font-size: 16px !important;
}

.article-body em {
    display: block !important;
    margin: 18px 0 !important;
    padding: 16px 18px !important;
    border-left: 4px solid var(--accent) !important;
    border-radius: 0 8px 8px 0 !important;
    background: var(--accent-soft) !important;
    color: #72502b !important;
}

.tips {
    margin-top: 30px !important;
    padding: 18px !important;
    border: 1px solid #cfe6dc !important;
    border-radius: 8px !important;
    background: var(--success-soft) !important;
}

.tips a {
    color: var(--primary) !important;
}

.back-home {
    text-align: center !important;
}

.back-home .ui-btn {
    width: auto !important;
    min-width: 144px !important;
    height: 44px !important;
    padding: 0 24px !important;
    line-height: 44px !important;
    background: var(--primary) !important;
}

input:focus,
select:focus,
.ui-btn:focus,
a:focus {
    outline: 3px solid rgba(216, 139, 53, .36);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 24px, 680px);
    }

    .page-layout {
        display: block;
        width: min(100% - 24px, 680px);
    }

    .calculator,
    .side {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    .side {
        position: static;
        margin: 20px 0 28px;
    }

    .article-content {
        padding: 24px 18px !important;
    }

    .hero-panel {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 30px 22px 26px;
    }

    .hero-copy {
        padding-left: 0;
        border-left: 0;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .input-fields {
        padding: 10px 16px 20px;
    }

    .field-wrap {
        display: block;
        padding: 14px 0;
    }

    .field-wrap label {
        width: auto;
        margin-bottom: 8px;
    }

    .field-wrap .field,
    .field-wrap .long-field,
    .field-wrap .short-field,
    .field-wrap .mid-field {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .switch-tabs {
        padding: 14px 14px 4px;
    }

    .switch-tabs ul {
        display: grid;
        grid-template-columns: 1fr;
    }

    .big-switch-tabs ul {
        height: auto;
        line-height: 1.3;
    }

    .result-list li .item-name,
    .result-list li .item-value {
        float: none;
        width: 100%;
        line-height: 1.35;
        text-align: left;
    }

    .result-list li {
        padding: 12px 16px;
    }

    .result-list li .item-value {
        margin-top: 4px;
        padding-right: 0;
    }
}

@media (max-width: 520px) {
    .header {
        padding: 18px 0 20px;
    }

    .brand-lockup {
        min-height: 54px;
        gap: 10px;
        padding: 7px 16px 7px 7px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand-icon:before {
        font-size: 20px;
    }

    .brand-icon:after {
        inset: 5px;
    }

    .brand-name {
        font-size: 24px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    .hero-panel h1 {
        font-size: 31px;
    }
}
