.profile-page .profile-title {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 40px;
    padding: 10px 0;
    background: #fff;
    text-align: center;
}

.profile-page .profile-title h1 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
}

.profile-page .profile-title button {
    position: absolute;
    top: 4px;
    right: 7px;
    display: flex;
    width: 44px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    font-size: 16px;
}

.profile-page .profile-header {
    position: relative;
    display: flex;
    padding: 20px 58px 20px 15px;
    align-items: center;
    gap: 15px;
    background: #fff;
}

.profile-page .profile-header .avatar {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    margin: 0;
    background-position: center;
    background-size: cover;
}

.profile-page .profile-info {
    min-width: 0;
    flex: 1;
}

.profile-page .profile-edit-link {
    position: absolute;
    top: 50%;
    right: 15px;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff0f4;
    color: var(--primary-color);
    font-size: 15px;
}

.profile-page .profile-info h2 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: bold;
}

.profile-page .js-profile-nickname {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-page .profile-level {
    flex: 0 0 auto;
    margin: 0;
    background: var(--primary-color);
    color: #fff;
    vertical-align: middle;
}

.profile-page .profile-info button {
    min-height: 30px;
    margin-top: 5px;
    color: var(--text-sub);
    font-size: 12px;
}

.profile-page .profile-info button i {
    margin-left: 5px;
}

.profile-page .wallet-card {
    display: flex;
    margin: 15px;
    padding: 15px;
    justify-content: space-around;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.profile-page .wallet-item {
    display: flex;
    min-width: 70px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-main);
}

.profile-page .wallet-item strong {
    margin-bottom: 5px;
    font-size: 18px;
}

.profile-page .wallet-item span {
    color: var(--text-sub);
    font-size: 12px;
}

.profile-page .order-card {
    margin: 0 15px 15px;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
}

.profile-page .card-title {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 10px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.profile-page .card-title h2 {
    font-size: 14px;
    font-weight: bold;
}

.profile-page .card-title button,
.profile-page .card-title a {
    color: var(--text-sub);
    font-size: 12px;
    font-weight: normal;
}

.profile-page .card-title i {
    font-size: 10px;
}

.profile-page .order-icons {
    display: flex;
    justify-content: space-around;
    color: var(--text-main);
    font-size: 12px;
    text-align: center;
}

.profile-page .order-icons button,
.profile-page .order-icons a {
    display: flex;
    min-width: 72px;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-main);
}

.profile-page .order-icons i {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 22px;
}

.profile-page .services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 15px;
    padding: 20px 15px;
    gap: 20px 15px;
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    font-size: 12px;
    text-align: center;
}

.profile-page .services-grid button,
.profile-page .services-grid a {
    display: flex;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    color: var(--text-main);
}

.profile-page .services-grid i {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 22px;
}

.profile-page .services-grid span {
    overflow-wrap: anywhere;
}

.profile-page .icon-reward { color: #ffb800 !important; }
.profile-page .icon-apply { color: #4a90e2 !important; }
.profile-page .icon-favorite { color: #ff4772 !important; }
.profile-page .icon-distribution { color: #50e3c2 !important; }
.profile-page .icon-message { color: #b8e986 !important; }
.profile-page .icon-gifts { color: #9013fe !important; }
.profile-page .icon-invite { color: #f5a623 !important; }

@media (max-width: 359px) {
    .profile-page .services-grid {
        gap: 16px 8px;
        padding-right: 10px;
        padding-left: 10px;
    }
}
