* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background: #f3f3f3;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1a1a1a;
    max-width: 430px;
    margin: 0 auto;
    -webkit-text-size-adjust: 100%;
}

button {
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.app {
    position: relative;
    min-height: 100vh;
    padding-bottom: 72px;
    background:
        radial-gradient(120% 70% at 80% -10%, #fde8df 0%, rgba(253, 232, 223, 0) 46%),
        linear-gradient(180deg, #fff8f6 0%, #ffffff 200px, #f4f4f4 260px);
    overflow-x: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    margin-top: 10px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 3px;
}

.icon-pin {
    width: 16px;
    height: 17px;
    display: block;
    flex-shrink: 0;
}

.city {
    font-size: 16px;
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-btn {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-gear,
.icon-msg,
.icon-plus {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.msg-count {
    position: absolute;
    top: -4px;
    right: -7px;
    min-width: 18px;
    height: 15px;
    padding: 0 3px;
    font-size: 9px;
    line-height: 15px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.profile-block {
    padding: 4px 12px 2px;
    margin-top: 20px;
}

.profile-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.card-bg {
    display: block;
    width: 100%;
    height: auto;
}

.avatar {
    position: absolute;
    left: 4.4%;
    top: 3%;
    width: 19.2%;
    height: auto;
    pointer-events: none;
}

.user-info {
    position: absolute;
    left: 26.2%;
    top: 13.8%;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1;
    white-space: nowrap;
}

.level-tag {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px 3px 4px;
    font-size: 11px;
    color: #c4a06a;
    line-height: 1;
    letter-spacing: 0.4px;
    white-space: nowrap;
    background: rgba(255, 252, 248, 0.72);
    border-radius: 20px;
}

.hex-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.level-arrow {
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 4px solid #c4a06a;
    margin-left: 1px;
}

.rights-entry {
    position: absolute;
    right: 11.6%;
    top: 11.2%;
    font-size: 15px;
    color: #e6c36a;
    font-weight: 500;
    white-space: nowrap;
}

.login-time {
    margin-top: 12px;
    font-size: 11px;
    color: #c8b6a6;
    white-space: nowrap;
}

.asset-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10%;
    display: flex;
    z-index: 3;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 12px;
    color: #9a9a9a;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.func-row {
    display: flex;
    margin-top: 20px;
    padding: 10px 6px 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.func-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.func-item img {
    width: 42px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.func-item span {
    font-size: 12px;
    color: #333;
}

.assets-card {
    margin: 10px 12px 14px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    padding-top: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.time-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px 8px;
}

.time-text {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.time-refresh {
    width: 16px;
    height: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.time-refresh img {
    position: absolute;
    height: 16px;
    width: auto;
    max-width: none;
    right: 0;
    top: 0;
}

.assets-body {
    position: relative;
    margin: -16px -6px -8px;
}

.assets-bg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.assets-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 4px;
    background: #fff;
}

.assets-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
}

.info-icon {
    width: 12px;
    height: 12px;
    border: 1px solid #c8c8c8;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.info-icon::after {
    content: "i";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    text-align: center;
    font-size: 9px;
    font-style: italic;
    font-family: Georgia, serif;
    color: #bbb;
    line-height: 12px;
}

.eye-btn {
    width: 20px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-btn img {
    height: 16px;
    object-fit: contain;
}

.detail-link {
    font-size: 13px;
    color: #b0b0b0;
}

.assets-amounts {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 12%;
    display: flex;
    padding: 0px 20px;
    justify-content: space-between;
}

.amount-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.assets-amounts .amount-col:first-child {
    max-width: 70%;
}

.amount-col-right {
    align-items: flex-end;
}

.amount-label {
    font-size: 12px;
    color: #b0b0b0;
}

.amount-num {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.4px;
}

.amount-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
}

.frozen-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 6px;
    background: linear-gradient(180deg, #eef5f8 0%, #e3edf3 100%);
    border: 1px solid #c8d6df;
    border-radius: 4px;
    color: #6d8190;
}

.frozen-lock {
    width: 11px;
    height: 13px;
    flex-shrink: 0;
    display: block;
}

.frozen-tag em {
    font-style: normal;
    font-size: 10px;
    color: #5e7a8a;
    background: #d4e2eb;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.frozen-tag strong {
    font-size: 12px;
    font-weight: 600;
    color: #7d8e99;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.deposit-row {
    position: absolute;
    left: 28px;
    right: 54px;
    top: 41.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.percent-row {
    position: absolute;
    left: 28px;
    top: 51%;
    font-size: 12px;
    color: #e60012;
    line-height: 1;
    background: #fff;
    padding: 0 8px 2px 0;
}

.diagnose-text {
    position: absolute;
    left: 16.2%;
    bottom: 16.2%;
    font-size: 12px;
    color: #666;
}

.diagnose-btn {
    position: absolute;
    right: 7.4%;
    bottom: 14.4%;
    width: 72px;
    text-align: center;
    font-size: 13px;
    color: #e60012;
    line-height: 28px;
}

.income-card {
    margin: 0 12px 12px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 16px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.income-head {
    margin-bottom: 16px;
}

.income-body {
    display: flex;
    justify-content: space-between;
}

.income-num {
    font-size: 20px;
    letter-spacing: 1px;
}

.tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 430px;
    display: flex;
    align-items: flex-end;
    background: #fff;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04);
    z-index: 20;
}

.tab-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.tab-ico {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.tab-ico.tab-mine {
    width: 28px;
    height: 28px;
}

.tab-item span {
    font-size: 11px;
    color: #222;
    line-height: 1;
}

.tab-item.active span {
    color: #e60012;
}

.hidden-num {
    letter-spacing: 2px;
}
