:root {
    --agreement-primary: #0066ff;
    --agreement-text: #344054;
    --agreement-muted: #667085;
    --agreement-border: #e4e7ec;
    --agreement-background: #f7f9fc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.agreement-body {
    margin: 0;
    color: var(--agreement-text);
    background: var(--agreement-background);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.agreement-main {
    padding: 128px 24px 72px;
    background: #ffffff;
}

.agreement-document {
    width: min(100%, 920px);
    margin: 0 auto;
}

.agreement-document p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
    overflow-wrap: anywhere;
}

.agreement-document ol,
.agreement-document ul {
    margin: 0 0 18px;
    padding-left: 28px;
}

.agreement-document li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.agreement-document li::marker {
    color: var(--agreement-primary);
}

.agreement-document > p:first-child {
    margin-bottom: 16px;
    color: #101828;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.agreement-document .agreement-date {
    margin-bottom: 4px;
    color: var(--agreement-muted);
    font-size: 14px;
    text-align: left;
}

.agreement-document .agreement-section-title {
    margin: 38px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--agreement-border);
    color: #101828;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

.agreement-document .agreement-date + .agreement-section-title {
    margin-top: 32px;
}

.agreement-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 28px;
    z-index: 20;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--agreement-primary);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.agreement-back-to-top i {
    font-size: 22px;
}

.agreement-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.agreement-back-to-top:hover,
.agreement-back-to-top:focus-visible {
    background: #0052cc;
}

.agreement-document a {
    color: var(--agreement-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.agreement-document a:hover,
.agreement-document a:focus-visible {
    color: #004fc4;
}

.agreement-document[data-disable-links="true"] a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: text;
}


.agreement-document table {
    display: block;
    width: 100%;
    margin: 22px 0 28px;
    overflow-x: auto;
    border-collapse: collapse;
}

.agreement-document td {
    min-width: 110px;
    padding: 10px 12px;
    border: 1px solid var(--agreement-border);
    vertical-align: top;
}

.agreement-document td:last-child {
    min-width: 280px;
}

.agreement-document td p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 720px) {
    .child-agreement-body > yiqicheng-header {
        display: none;
    }

    .child-agreement-body .agreement-main {
        padding-top: 28px;
    }

    .agreement-main {
        padding: 96px 20px 52px;
    }

    .agreement-document p {
        margin-bottom: 14px;
        font-size: 15px;
        line-height: 1.85;
        text-align: left;
    }

    .agreement-document ol,
    .agreement-document ul {
        padding-left: 24px;
    }

    .agreement-document li {
        font-size: 15px;
        line-height: 1.85;
    }

    .agreement-document > p:first-child {
        margin-bottom: 14px;
        font-size: 27px;
    }

    .agreement-document .agreement-section-title {
        margin-top: 30px;
        font-size: 18px;
    }

    .agreement-back-to-top {
        right: 16px;
        bottom: 20px;
        width: 42px;
        height: 42px;
    }
}
