.tx-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #0A0A0A;
}

.tx-layout .site-header,
.tx-layout .footer-box {
    flex-shrink: 0;
}

.tx-page {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: #0A0A0A;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.tx-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
    background: #181818;
    overflow: hidden;
}

.tx-nav-back {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-nav-back img {
    width: 24px;
    height: 24px;
    display: block;
    opacity: 0.65;
    filter: brightness(0) invert(1);
}

.tx-nav-title {
    margin: 0;
    flex: 1 1 0;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 700;
    line-height: 22px;
    overflow: hidden;
}

.tx-nav-spacer {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tx-main {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-sizing: border-box;
}

.tx-balance-card {
    width: 100%;
    min-height: 94px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.tx-balance-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 18px;
}

.tx-balance-value {
    color: #fff;
    font-size: 24px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 700;
    line-height: 32px;
}

.tx-balance-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 16px;
}

.tx-section-title {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 700;
    line-height: 22px;
}

.tx-list {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.tx-item {
    width: 100%;
    min-height: 84px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.tx-item + .tx-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tx-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    overflow: hidden;
}

.tx-item-name {
    color: #fff;
    font-size: 14px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 700;
    line-height: 20px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-item-time {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 16px;
}

.tx-item-amount {
    flex-shrink: 0;
    font-size: 17px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 700;
    line-height: 24px;
}

.tx-item-amount--plus {
    color: #FADC44;
}

.tx-item-amount--minus {
    color: rgba(255, 255, 255, 0.85);
}

.tx-empty {
    padding: 28px 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.50);
    font-size: 13px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 20px;
}

.tx-note {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 11px;
    font-family: "Noto Sans SC", PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 16px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    body.is-tx-page .site-header,
    body.is-tx-page .footer-box,
    body.is-tx-page .floating-action,
    body.is-tx-page .download-fab {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .tx-page {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

@media (min-width: 768px) {
    .tx-page {
        padding: 36px 0;
        gap: 24px;
    }

    .tx-nav {
        display: none;
    }

    .tx-main {
        width: 964px;
        max-width: calc(100% - 180px);
        padding: 0;
        gap: 16px;
    }

    .tx-balance-card {
        border-radius: 20px;
        padding: 20px 24px;
    }

    .tx-section-title {
        font-size: 28px;
        line-height: 34px;
    }

    .tx-list {
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .tx-item {
        min-height: 72px;
        padding: 16px 20px;
    }

    .tx-item-name {
        max-width: 720px;
        font-size: 15px;
    }

    .tx-note {
        border-radius: 14px;
        padding: 14px 16px;
        font-size: 12px;
    }
}
