.screen {
    background-color: #edf1f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.screen .div {
    background-color: #edf1f4;
    justify-content: center;
    height: calc(100% - 48px);
}

.screen .footer {
    text-align: center;
    margin: 20px;
    font-size: 12px;
}

.screen .frame {
    display: flex;
    flex-direction: column;
    width: 1200px;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    position: relative;
    top: 212px;
    background-color: #ffffff80;
    border-radius: 8px;
    border: 1px solid;
    border-color: #ffffffcc;
    backdrop-filter: blur(16px) brightness(100%);
    -webkit-backdrop-filter: blur(16px) brightness(100%);
}

.screen .div-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 812px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.screen .text-wrapper {
    margin-top: -1.00px;
    font-family: "PingFang SC-Regular", Helvetica;
    color: #000000;
    font-size: 24px;
    position: relative;
    width: fit-content;
    font-weight: 400;
    letter-spacing: 0;
    line-height: normal;
}

.screen .frame-2 {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.screen .calculate-container {
    display: flex;
    flex-direction: column;
    width: 240px;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

.screen .div-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.screen .frame-3 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.screen .text-wrapper-2 {
    width: fit-content;
    margin-top: -1.00px;
    font-family: "PingFang SC-Semibold", Helvetica;
    font-weight: 400;
    color: #313233;
    font-size: 12px;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .frame-4 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    flex: 0 0 auto;
}

.screen .clear-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    flex: 0 0 auto;
    border: none;
    padding: 0;
    background: none;
    /* 可选，去掉默认背景 */
    outline: none;
    /* 可选，点击后不显示默认轮廓 */
    cursor: pointer;
    /* 鼠标样式更像按钮 */
}

.screen .text-wrapper-3 {
    width: fit-content;
    margin-top: -0.50px;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #787a7c;
    font-size: 11px;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .frame-wrapper {
    position: relative;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    width: 16px;
    height: 16px;
}

.screen .frame-wrapper-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 16px;
}

.screen .div-3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    position: relative;
    align-self: stretch;
    width: 100%;
    /* flex: 0 0 auto; */
    background-color: #ffffffcc;
    border-radius: 8px;
    backdrop-filter: blur(16px) brightness(100%);
    -webkit-backdrop-filter: blur(16px) brightness(100%);
}

.screen .input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    align-self: stretch;
    width: 100%;
    /* flex: 0 0 auto; */
}

.screen .text-wrapper-3 {
    position: relative;
    width: 56px;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #787a7c;
    font-size: 11px;
    letter-spacing: 0;
    line-height: normal;
}

.screen .item-input {
    height: 28px;
    padding: 4px 8px;
    flex: 1;
    flex-grow: 1;
    background-color: #ffffff;
    border-radius: 100px;
    border: 1px solid #ebeef4;
    font-family: "PingFang SC-Medium", Helvetica;
    font-weight: 500;
    color: #000000;
    font-size: 11px;
    text-align: right;
}

.screen .item-input:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    background-color: #f9f9f9;
    /* 可选，表现更清晰 */
}

.screen .input-wrapper-percent {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 1;
    flex-grow: 1;
}

.screen .percent-sign {
    font-family: "PingFang SC-Medium", Helvetica;
    font-weight: 500;
    color: #000000;
    font-size: 11px;
}

.screen .frame-5 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.screen .text-wrapper-6 {
    flex: 1;
    margin-top: -1.00px;
    font-family: "PingFang SC-Semibold", Helvetica;
    font-weight: 400;
    color: #313233;
    font-size: 12px;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .frame-6 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    background-color: #ffffffcc;
    border-radius: 8px;
    /* box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.08); */
    backdrop-filter: blur(16px) brightness(100%);
    -webkit-backdrop-filter: blur(16px) brightness(100%);
    animation: slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-top {
    0% {
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
    }

    100% {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }
}

.screen .calculate-input {
    display: flex;
    height: 32px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    align-self: stretch;
    width: 100%;
}


.screen .text-wrapper-8 {
    width: fit-content;
    font-family: "Roboto", Helvetica;
    font-weight: 500;
    color: #000000;
    font-size: 12px;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .custom-input {
    font-family: "Roboto", Helvetica;
    font-weight: 500;
    color: #000000;
    font-size: 12px;
    line-height: normal;
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    text-align: right;
}

.screen .rectangle {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 1px;
    background-color: #ebeef4;
}

.screen .frame-7 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0px 0px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.screen .buyButton,
.sellButton,
.BuildButton {
    cursor: pointer;
    display: flex;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 32px;
    position: relative;
    flex: 1;
    flex-grow: 1;
    background-color: #f45532;
    border-radius: 100px;
    border: none;
}

.sellButton {
    background-color: #4fbd18;
}

.BuildButton {
    background-color: #00A1FF;
    width: 100%;
}

.BuildButton:active {
    background-color: #0082D5;
}

.buyButton:active {
    background-color: #E83912;
}

.sellButton:active {
    background-color: #389E0D;
}

.screen .errorMessage {
    color: red;
    display: none;
    font-size: 11px;
    font-family: "PingFang SC-Semibold", Helvetica;
    font-weight: 400;
}

.screen .text-wrapper-9 {
    margin-top: -2.00px;
    font-family: "PingFang SC-Semibold", Helvetica;
    color: #ffffff;
    font-size: 13px;
    position: relative;
    width: fit-content;
    font-weight: 600;
    letter-spacing: 0;
    line-height: normal;
}

.screen .result-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    flex: 1;
    align-self: stretch;
    flex-grow: 1;
}

.screen .frame-8 {
    display: flex;
    align-items: center;
    gap: 64px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.screen .frame-9 {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    flex-grow: 1;
}

.screen .text-wrapper-10,
.screen .text-wrapper-11,
.screen .text-wrapper-7 {
    width: fit-content;
    margin-top: -1.00px;
    font-family: "PingFang SC-Medium", Helvetica;
    font-weight: 500;
    color: #000000;
    font-size: 12px;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .text-wrapper-11 {
    color: #E83912;
}

.screen .text-wrapper-7 {
    color: #4fbd18;
}

.screen .frame-10 {
    position: relative;
    flex: 1;
    flex-grow: 1;
    height: 17px;
}

.screen .calculated-records {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
}

.screen .frame-11 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.screen .calculated-records-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    /* 移除顶部内边距，避免 header 和内容之间出现偏移 */
    position: relative;
    width: 100%;
    max-height: 600px;
    flex-grow: 1;
    background-color: #ffffffcc;
    border-radius: 8px;

    overflow-y: auto;
    /* ✅ 开启滚动 */
    backdrop-filter: blur(16px) brightness(100%);
    -webkit-backdrop-filter: blur(16px) brightness(100%);
}

/* ✅ 表头固定在顶部 */
.screen .calculated-records-2 .frame-12:first-child {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffffcc;
    /* 避免滚动时内容穿透 */
    backdrop-filter: blur(16px) brightness(100%);
    -webkit-backdrop-filter: blur(16px) brightness(100%);
}

/* 适用于 WebKit 浏览器 */
.screen .calculated-records-2::-webkit-scrollbar {
    width: 4px;
}

.screen .calculated-records-2::-webkit-scrollbar-track {
    background: transparent;
}

.screen .calculated-records-2::-webkit-scrollbar-thumb {
    background-color: #D7DAE0;
    border-radius: 3px;
    border: none;
}


.screen .frame-12 {
    display: flex;
    height: 28px;
    align-items: center;
    gap: 8px;
    position: relative;
    align-self: stretch;
    flex-shrink: 0;
    width: 100%;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-color: #ebeef4;
}

.screen .text-wrapper-12 {
    width: 32px;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #787a7c;
    font-size: 11px;
    text-align: center;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .text-wrapper-13 {
    width: 40px;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #787a7c;
    font-size: 11px;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}


.screen .text-wrapper-15 {
    text-align: right;
    position: relative;
    flex: 1;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #787a7c;
    font-size: 11px;
    letter-spacing: 0;
    line-height: normal;
}

.screen .text-wrapper-16 {
    text-align: center;
    position: relative;
    flex: 1;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #787a7c;
    font-size: 11px;
    letter-spacing: 0;
    line-height: normal;
}

.screen .text-wrapper-17 {
    width: 32px;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #313233;
    font-size: 11px;
    text-align: center;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .text-wrapper-18 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #f45532;
    font-size: 11px;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .text-wrapper-20 {
    flex: 1;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #313233;
    font-size: 11px;
    text-align: right;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .text-wrapper-21,
.text-wrapper-24 {
    flex: 1;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #4fbd18;
    font-size: 11px;
    text-align: right;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}

.screen .text-wrapper-24 {
    color: #f45532;
}

.screen .text-wrapper-22 {
    position: relative;
    flex: 1;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #313233;
    font-size: 11px;
    text-align: center;
    letter-spacing: 0;
    line-height: normal;
}

.screen .frame-13 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    flex: 0 0 auto;
}

.screen .img {
    position: absolute;
    width: 12px;
    height: 12px;
    top: 2px;
    left: 2px;
}

.screen .text-wrapper-23 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    font-family: "PingFang SC-Regular", Helvetica;
    font-weight: 400;
    color: #4fbd18;
    font-size: 11px;
    position: relative;
    letter-spacing: 0;
    line-height: normal;
}